Tuesday, January 26, 2010

For loop logical Program

We already know that, for loop syntax:
for(initialization;condition;reinitialization)
{
}
see this program.

#include< stdio.h >
main()
{
int i=1;
for(i=0;i<2;)
{
i++;
printf("%d",i);
}
}


output:
0 1

0 comments:

Post a Comment