Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

C-program of printing "Hello World", 10 times on the screen.




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>;
}




Don't just read, write it, run it.....color>

RESULT:color>





This post first appeared on ProgramJoy.blogspot.com, please read the originial post: here

Share the post

C-program of printing "Hello World", 10 times on the screen.

×

Subscribe to Programjoy.blogspot.com

Get updates delivered right to your inbox!

Thank you for your subscription

×