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

Friday, December 6, 2013

Program For Loop Display 10 To 1 Numbers

C Plus Plus Program To display numbers from 10 down to 1, Program For Loop Display 10 To 1 Numbers

/*
Write a C++ Program to display 10 down to 1 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 Numbers from 1 to 10 by For Loop ";

  for (counter = 10; counter >= 1; counter--)
           cout<<"\n"<<counter;

  getch();

}
Share:

0 comments:

Post a Comment

We Love To Hear From You!

EasyCPPprogramming.blogspotcom

Blog Archive

Labels