Back To C Loops Index
//program to input two numbers a and b and display numbers between them using for loop #include
#include
void main() { int a,b; int i; clrscr(); printf("enter value for a"); scanf("%d",&a); printf("enter value for b"); scanf("%d",&b); for(i=a;i<=b;i++) { printf("\n%d",i); } getch(); }