In this C program we will print "Hello World", 10 times on the screen. We will use "body-less-loop" for this C-Program.color>
"Body-less-loop" : it means that the inner part(code block to be executed) of the loop will be empty and the loop will have a semi-colon(;) in it's end.
i.e:
for ( ..... ; ..... ; ..... ) ;
input:
Null.output:
"Hello World" will be printed on the screen, 10 times.CODE---->
#include
color>int main()
{
int i;
for(i=1color>;i;printf(" Hello World ! \ncolor>",i++color>));
return 0color>;
}
color>