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

give us your feedback

People Online

Breaking

ads

Post Top Ad

Monday, October 14, 2019

c++ Progam that display the series of number from 0 to N (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=0;a<=number;a++){
    cout<<a<<endl;
   }
    return 0;
}

//THE OUTPUT
the program as a user to enter the limit of a number 

 let  a user enter 100 as limit of number 

Enter the limit of a Number : 100
1
2
3
4
5
.
.
.
.
.
.
.
100 

No comments:

Post a Comment

ads1

Post Top Ad