FastFoodCoding

Login


Connect with one of the following accounts





Login

Please wait while we redirect...

Views: 120   



Following program shows you how to print numbers from 1 to 10 using while loop.

#include <stdio.h>
int main(void) {
    int input = 1;
    while (input <= 10) {
        printf("%d \n", input);
        input++;
    }
}

Output:

1 
2 
3 
4 
5 
6 
7 
8 
9 
10



On By


Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News