c++ Program that display the series of number from 0 to N in reverse order (the program allow a user to enter the limit of Number) - 6 Players blogs for technology

give us your feedback

People Online

ads

Post Top Ad

Monday, October 14, 2019

c++ Program that display the series of number from 0 to N in reverse order (the program allow a user to enter the limit of Number)

#include <iostream>

using namespace std;

int main()
{
   int a, number ;
   cout<<"Enter the limit of a Number : ";
   cin>>number;

   for(a=number;a>=0;a--){
    cout<<a<<endl;
   }
    return 0;
}



THE OUTPUT



Enter the limit Number : 10
10
9
8
7
6
5
4
3
2
1
0

No comments:

Post a Comment

ads1

Post Top Ad