C++ tutorial, C++ programs, C++ Exercises, C++ Example Programs

Friday, December 6, 2013

Program For Loop Display Odd 1 to 10


/*
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

*/
Program For Loop Display Odd 1 to 10, C Plus Plus Program Display Odd Numbers between 1 to 10
#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();

}
Share:

0 comments:

Post a Comment

We Love To Hear From You!

EasyCPPprogramming.blogspotcom

Blog Archive

Labels