‘C’ program to display all numbers between two given numbers.
C File =>
/* Write a ‘C’ program to display all numbers between two given numbers. */
#include<stdio.h>
int main()
{
int n,m,i;
printf("\n Enter first number : ");
scanf("%d",&n);
printf("\n Enter last number : ");
scanf("%d",&m);
for(i=n+1;i<m;i++)
printf("%d\t",i);
return 0;
}
Comments
Post a Comment
Please do not enter any spam link in message.