구구단을 하자
~cpp #include <iostream> using namespace std; void main() { for (int j=1; j< 10; j++) { for (int i=2; i<6; i++) { cout << i << " * " << j << " = " << i*j << "\t"; } cout << endl; } for (int k=1; k<10; k++) { for (int m=6; m<10; m++) { cout << m << " * " << k << " = " << m*k << "\t"; } cout << endl; } }