#include <iostream>
#include <iomanip>
using namespace std;
int main() {
int i, j;
cout<<setw(55)<<"구 구 단 출 력"<<endl<<setw(55)<<"================"<<endl<<endl;
for (i=2;i<6;i++) {
cout << setw(15) << i << " 단";
}
cout << endl << setw(13);
for (i = 0; i < 67; i++) {
cout << '-';
}
for (i = 1; i < 10; i++) {
cout << endl << setw(13);
for (j = 2; j < 6; j++) {
cout << j << " * " << i << " = " << setw(2) << j * i << setw(10);
}
}
cout << endl << endl << endl;
for (i = 6; i < 10; i++) {
cout << setw(15) << i << " 단";
}
cout << endl << setw(13);
for (i = 0; i < 67; i++) {
cout << '-';
}
for (i = 1; i < 10; i++) {
cout << endl << setw(13);
for (j = 6; j < 10; j++) {
cout << j << " * " << i << " = " << setw(2) << j * i << setw(10);
}
}
}