63 087
Assignments Done
99,1%
Successfully Done
In July 2018

Answer to Question #1257 in C++ for umar

Question #1257
Print a table of any number inputted by user using while loop in C++.
Expert's answer
#include <iostream>

using namespace std;

int main() {
int number;

cout<<"Please input any number"<<endl;
cin>> number;
while (number >= 0) {
 cout<<number<<endl;
 number -= 1;
}
return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions