Pagini recente » Rating pula pizda (sugpula12345) | Cod sursa (job #1125938) | Cod sursa (job #1680135) | Cod sursa (job #3038513) | Cod sursa (job #231317)
Cod sursa(job #231317)
#include<cstdio>
using namespace std;
int n,k,a[1001][1001],i,j;
int main()
{ freopen("tablete.in","r",stdin);
freopen("tablete.out","w",stdout);
scanf("%d%d",&n,&k);
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
a[i][j]=i*j;
if(k%2==0)
for(i=1;i<=n;i++)
{ for(j=1;j<=n;j++)
printf("%ld ",a[i][j]);
printf("\n");
}
//else
return 0;
}