Monday, February 2, 2015

While loop

Input :

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int i;
    i = 1;

    while (i<=5)
    {
        printf ("%d",i);
        i++;

    }
    return 0;
}


Output :

12345

No comments:

Post a Comment