/*
Write a C++ Program to display All numbers from
1 to n (the entered positive number)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 number, counter;
cout<<"\n Enter a positive number = ";
cin>>number;
cout<<"\n\n ----------- Results ------------";
cout<<"\n\n Display All Numbers between \n 1 to n(entered positive number)\n by For Loop ";
for (counter = 1; counter <= number; counter++)
cout<<"\n \t"<<counter;
getch();
}
Friday, December 6, 2013
Home »
C Plus Plus program to display 1 to n numbers
,
Program For Loop Display 1 To n Numbers
» Program For Loop Display 1 To n Numbers
0 comments:
Post a Comment
We Love To Hear From You!