#include<iostream.h> #include<conio.h> //----------------------------- Main( ) -------------------------------// main() { clrscr(); cout<<\"\\n The Odd numbers b/w 0 to 50 are as follows :\"<<endl; int count_1=0; while(count_1<=50) { if(count_1%2==1) cout<<\" \"<<count_1; count_1++; } cout<<\"\\n\\n The Even numbers b/w 0 to 50 are as follows :\"<<endl; int count_2=0; while(count_2<=50) { if(count_2%2==0) cout<<\" \"<<count_2; count_2++; } cout<<\"\\n\\n The numbers divisible by 5 b/w 0 to 50 are as follows :\" <<endl; int count_3=0; while(count_3<=50) { if(count_3%5==0) cout<<\" \"<<count_3; count_3++; } getch(); return 0; }