home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 1
/
ARM_CLUB_CD.iso
/
contents
/
apps
/
program
/
a
/
c_interp
/
Examples
/
constructs
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1993-12-13
|
252 b
|
22 lines
@* An example of constructs *@
main()
{
int i=5, j=10;
if(i>j && j>6)
printf("%d\n\n",i);
else
printf("%d\n\n",j);
@* Loop from 0 to 9 step 1 *@
for(i=0; i<10; i++)
printf("Loop %d\n",i);
i=0;
while(i<10)
{
printf("Loop %d\n",i++);
}
}