课程首页地址:http://blog.csdn.net/sxhelijian/article/details/7910565
【项目3:乘法口诀表】编程序,输出一个乘法口诀表,形如
1x1=1
1x2=2 2x2=4
1x3=3 2x3=6 3x3=9
……
#include <iostream> using namespace std; int main( ) { int i,j; cout<<" 我的小九九是"<<endl; for(i=1;i<=9;++i) { for(j=1;j<=i;++j) cout<<i<<"×"<<j<<'='<<i*j<<' '; cout<<endl; } return 0; }