Pages

Tuesday, February 9, 2016

C program to print 10 to 20 numbers using while loop.

#include<stdio.h> 
int main()
{
int number=10;

while(number <= 20)
{
printf("%d ", number);
number = number + 1;
}
 return 0;
}

Output of program:

10 11 12 13 14 15 16 17 18 19 20

No comments:

Post a Comment