구구단을 만들어 놓은 페이지입니다.
#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; }