구구단/방선희
데블스캠프 첫번째날 Toy Problem - 구구단


~cpp #include <iostream>
using namespace std;
void main()
{
	int j=1;
	
	for(j=1; j < 10; j++)
	{
		for(int i=2; i < 6; i++)
		{
			cout << i << " * " << j << " = " << i*j << "\t";
			if( i > 4 )
				cout << endl;

		}

	
	}
	
	cout << endl;

	for(j=1; j < 10; j++)
	{
		for(int k=6; k < 10; k++)
			{
				cout << k << " * " << j << " = " << k*j << "\t";
				if( k > 8 )
					cout << endl;

			}
	}					
}


Retrieved from http://wiki.zeropage.org/wiki.php/구구단/방선희
last modified 2021-02-07 05:28:44