Saturday, 26 May 2012

For Loop in c

When you want to do any operation for multiple times, this time you may use for operation in c. e.g. if you want to write "Hello World" on the screen for hundred times you can use this loop operation.

here is the program
#include<stdio.h>
int main(){
        int i;
        for ( i=0; i<=100; i++ )
       {
           printf("Hello World !!!\n");
       
       
}
       system("PAUSE");
      return 0;
}

No comments:

Post a Comment