U E D R , A S I H C RSS

구구단/방선희

구구단/방선희
데블스캠프 첫번째날 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;

			}
	}					
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:28:44
Processing time 0.0116 sec