using namespace std;
int main()
{
int a, number ,sum=0;
cout<<"Enter the limit of a Number : ";
cin>>number;
for(a=number;a>=0;a--){
cout<<a<<endl;
sum+=a;
}
cout<< "the sum of number from 0 to "<<number<<"in reverse = "<<sum<<endl;
return 0;
}
give us your feedback
C++ Program that display your full Name enter by a user #include <iostream> using namespace std; int main() { char F_n...
No comments:
Post a Comment