|
/* Program# 49
date : 28-12-2008
while loop- Prints numbers between given range
*/
#include <stdio.h>
main(){
int a,b,c=0;
printf("\nEnter two numbers :");
scanf("%d %d",&a,&b);
while(a<=b){
printf("\n%d",a);
a=a+1;
}
}
output:To compile the program, run the gcc command, $ gcc p49.c |