To print numbers from m to n if n is greater than m

#include<stdio.h>
#include<conio.h>
void main()
{
int i, n, m;
clrscr();
printf("\n Enter lower limit and upper
limit");
scanf("%d%d”,&m, &n) ;
printf("\n Numbers from d to %d are \n", m,
n) ;
for(i=m;i<=n;i++)
printf("%5d",i);
getch();
}

Output
Enter lower limit and upper limit
10 20
Numbers from 10 to 20 are
10 11 12 13 14 15 16 17 18 19 20

Posted on by