For Loop Tricks

For Loop Tricks:

#include<stdio.h>
int main()
{
    int i;
    i=1;
    for(printf("Hi\n");i<=5;printf("Dave\n")){
        printf("Hello World\n");
        i++;
    }
    return 0;
}

Output:

Hi
Hello World
Dave
Hello World
Dave
Hello World
Dave
Hello World
Dave
Hello World
Dave

Process returned 0 (0x0)   execution time : 0.043 s
Press any key to continue.

 

It would be a great help, if you support by sharing :)
Author: zakilive

Leave a Reply

Your email address will not be published. Required fields are marked *