mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 463.cpp
This commit is contained in:
parent
fbe91098ba
commit
882bd19dc4
25
NYOJ/463.cpp
Normal file
25
NYOJ/463.cpp
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#include <cstdio>
|
||||||
|
#include <cstdlib>
|
||||||
|
#include <cstring>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int t;
|
||||||
|
scanf("%d",&t);
|
||||||
|
for(int i=0;i<t;i++)
|
||||||
|
{
|
||||||
|
int n;
|
||||||
|
scanf("%d",&n);
|
||||||
|
for(int i=1;i<=n;i++)
|
||||||
|
{
|
||||||
|
for(int j=i;j<9;j++)
|
||||||
|
{
|
||||||
|
printf("%d*%d=%d ",i,j,i*j);
|
||||||
|
}
|
||||||
|
printf("%d*9=%d\n",i,i*9);
|
||||||
|
}
|
||||||
|
printf("\n");
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user