c++编译九九乘法表
#include<iostream>
#include<stdlib.h>
using namespace std;
int main()
{
int a,b;
for(int a=1;a<=10;a++)
{
for(int b=1;b<=a;b++)
{
cout<<b<<"*"<<a<<"="<<a*b<<" ";
}
cout<<endl;
}
system("pause");
return 0;
}
运行的结果: