#include<stdio.h> #include<conio.h> void main() { int a,b,i; clrscr(); printf("enter starting range:"); scanf("%d",&a); printf("enter ending range:"); scanf("%d",&b); i=a; while(i<=b) { if(i%2==1) printf("%d",i); i++; } getch(); } |
Output:-
______________________________________________________
______________________________________________________
______________________________________________________
______________________________________________________
Post a Comment