打印九九乘法表
This commit is contained in:
parent
12e18ec415
commit
74f9c23f9e
|
@ -0,0 +1,19 @@
|
|||
// 打印九九乘法表
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
for (int i = 1; i < 10; i++)
|
||||
{
|
||||
for (int j = 1; j < 10; j++)
|
||||
{
|
||||
if (j <= i)
|
||||
cout << i << "*" << j << "=" << i * j << "\t";
|
||||
}
|
||||
cout << endl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue