解题思路:
直接原样输出即可 注意事项:
参考代码:
#include<iostream> using namespace std; int main() { cout<<" Nine-by-nine Multiplication Table"<<endl; cout<<"--------------------------------------"<<endl; cout<<" 1 2 3 4 5 6 7 8 9"<<endl; cout<<"--------------------------------------"<<endl; cout<<" 1 1"<<endl; cout<<" 2 2 4"<<endl; cout<<" 3 3 6 9"<<endl; cout<<" 4 4 8 12 16"<<endl; cout<<" 5 5 10 15 20 25"<<endl; cout<<" 6 6 12 18 24 30 36"<<endl; cout<<" 7 7 14 21 28 35 42 49"<<endl; cout<<" 8 8 16 24 32 40 48 56 64"<<endl; cout<<" 9 9 18 27 36 45 54 63 72 81"<<endl; cout<<"--------------------------------------"<<endl; return 0; }
0.0分
3 人评分