
/*
Write a C++ Program to display Odd between 1 to 10 numbers by FOR Loop
For Free C++ Programming Techniques (Example Programs), visit
Www.EasyCppProgramming.Blogspot.Com
and For Good Notes
Visit Www.ForFreeEducation.Blogspot.Com
*/

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int counter;
cout<<"\n\n ----------- Results ------------";
cout<<"\n\n Display Odd Numbers between \n 1 to 10 by For Loop ";
for (counter = 1; counter <= 10; counter += 2)
cout<<"\n"<<counter;
getch();
}
0 comments:
Post a Comment
We Love To Hear From You!