Answered You can hire a professional tutor to get the answer.

QUESTION

19683 1968 196 19 1 Answer: #include iostream using namespace std; int main() { int x = 0; while (x = 0) { cout "Enter a positive integer:

19683

1968

196

19

1

Answer:

#include <iostream>

using namespace std;

int main() {

int x = 0;

while (x <= 0) {

cout << "Enter a positive integer: ";

cin >> x;

}

while (x > 0) {

cout << x << endl;

x = x / 10;

}

return 0;

}

so i wrote a program like this . but i actually not very clear how it work ?

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question