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