#include <stdlib.h>
int main()
{
int n,m,i;
printf("\n\t enter the value of n = ");
scanf("%d",&n);
printf("\n\t enter the value of m = ");
scanf("%d",&m);
printf("\n\t the number between %d and %d are \n\t",n,m);
for(i=n;i<=m;i+=2){
printf("\n\t %d",i);
}
return 0;
}
THE OUTPUT IS
let say n=1 and m=10
1
3
5
7
9
No comments:
Post a Comment