19 lines
228 B
C
19 lines
228 B
C
|
#include <stdio.h>
|
||
|
|
||
|
#define N 10
|
||
|
int main () {
|
||
|
|
||
|
int T[N] = {5,1,2,2,1,3,2,3,2,1};
|
||
|
|
||
|
int tab[N];
|
||
|
|
||
|
int i ;
|
||
|
|
||
|
for (i = 0 ; i< N ; i++) {
|
||
|
tab[i] = i*i;
|
||
|
printf("%d %d %d\n",i,T[i],tab[i]);
|
||
|
}
|
||
|
|
||
|
return 1;
|
||
|
}
|