Cod sursa(job #729894)
Utilizator | Data | 30 martie 2012 19:15:16 | |
---|---|---|---|
Problema | Tablete | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.29 kb |
#include<fstream>
using namespace std;
int main()
{
ifstream fcin("tablete.in");
ofstream fcout("tablete.out");
short n,k,i,j,nr=0;
fcin>>n>>k;
if(n%2==0)
if(k%2==0)
for(i=1;i<=n;i++)
{
for(j=1;j<=n;j++)
fcout<<++nr<<" ";
fcout<<"\n";
}
return 0;
}