home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
progm
/
ctutor2.zip
/
ANSWERS
/
CH04_1.C
< prev
next >
Wrap
Text File
|
1989-11-10
|
348b
|
29 lines
main()
{
int index, square;
for(index = 1;index < 13; index = index + 1) {
square = index * index;
printf("%5d%5d\n",index, square);
}
}
/* Result of execution
1 1
2 4
3 9
4 16
5 25
6 36
7 49
8 64
9 81
10 100
11 121
12 144
*/