1 #include<iostream> 2 #include<iomanip> 3 using namespace std; 4 int main(){ 5 int i,j,n; 6 cin>>n; 7 for(i=1;i<=n;++i){ 8 for(j=1;j<=i;++j){ 9 cout<<j<<"*"<<i<<"="; 10 cout<<left<<setw(4)<<i*j; 11 } 12 cout<<endl; 13 } 14 return 0; 15 }
循环-12. 打印九九口诀表(15),布布扣,bubuko.com
原文地址:http://www.cnblogs.com/gnodidux/p/3821008.html