Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

구구단/변준원

From ZeroWiki

구구단을 짜놓은 페이지입니다.


#include<iostream>
using namespace std;

int main()
{
	int i,j;
	for (j=1; j<10 ;j++)
	{for(i=2; i<6; i++)
		cout << i << " X " << j << " = " << i*j << "\t";
	cout << endl;}
	cout << "\n";
	for (j=1; j<10 ;j++)
	{for(i=6; i<10; i++)
		cout << i << " X " << j << " = " << i*j << "\t";
	cout << endl;}

	return 0;
}

구구단