int main()
{
for (int i = 1; i <= 9; i++) //行数
{
for (int j = 1; j <= i; j++) //列数,列数<=行数
{
cout << j << "*" << i << " = " << j*i <<" " ; //列数*行数=结果
}
cout<< endl;
}
system("pause");
return 0;
}
int main()
{
for (int i = 1; i <= 9; i++) //行数
{
for (int j = 1; j <= i; j++) //列数,列数<=行数
{
cout << j << "*" << i << " = " << j*i <<" " ; //列数*行数=结果
}
cout<< endl;
}
system("pause");
return 0;
}