C++ Program that Display Series of number from 0 to Limit enter by a user - 6 Players blogs for technology

give us your feedback

People Online

Breaking

ads

Post Top Ad

Thursday, October 24, 2019

C++ Program that Display Series of number from 0 to Limit enter by a user



C++ Program that Display Series of number from 0 to Limit enter by a user


#include <iostream>

using namespace std;

int main()
{
    int a=0,limit;
    cout<<"Enter the limit : " ;
   cin>>limit;
while(a<=limit){
cout<<a<<endl;
a++;
}
    
    return 0;
}





No comments:

Post a Comment

ads1

Post Top Ad