U E D R , A S I H C RSS

구구단/강희경

No difference found



구구단을 만들어 놓은 페이지입니다.


#include<iostream>
using namespace std;
int main()
{
	int count = 0;
    for(int i = 1; i < 10; i++)
	{
		for(int j = 2; j < 6; j++)
		{
			cout << j << "*" << i << "=" << i*j <<" ";
		    count++;
			if(count==4)
			{
				count = 0;
				cout << endl;
			}
		}
	}
	cout << endl;
	count=0;
	for(int k = 1; k < 10; k++)
	{
		for(int l = 6; l < 10; l++)
		{
			cout << l << "*" << k << "=" << l*k <<" ";
		    count++;
			if(count==4)
			{
				count = 0;
				cout << endl;
			}
		}
	}
	return 0;
}
꼴찌,,,,,,,,,,,


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