Cod sursa(job #284769)

Utilizator EstiarteManuel Esanu Estiarte Data 21 martie 2009 22:48:33
Problema Tablete Scor 10
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.35 kb
#include<stdio.h>
int main()
{
  FILE *in=fopen("tablete.in","rt");
  FILE *out=fopen("tablete.out","wt");
  long int nr,a[1001][1001];
  int n,k,i,j;
  fscanf(in,"%d",&n);
  fscanf(in,"%d",&k);
  nr=1;
  for(i=1;i<=n;i++)
  {
    for(j=1;j<=n;j++)
    {
      fprintf(out,"%ld ",nr);
      nr++;
    }
    fprintf(out,"\n");
  }
  return 0;
}