창재군이 만들어 놓은 구구단 소스입니다.
~cpp #include <iostream.h> int main() { for(int i = 1; i <10 ; i++) { for (int k = 2; k < 6 ; k++) cout << k << "*" << i << "=" << i*k <<"\t"; cout << endl; } cout << endl << endl; for(int j = 1; j <10 ; j++) { for (int k = 6; k < 10 ; k++) cout << k << "*" << j << "=" << j*k << "\t"; cout << endl; } return 0; }