#include <iostream>
usingnamespace std;
int main() {
int num = 0;
int reversed = 0;
int remainder = 0;
cout << "I'm going to take a positive integer you enter and reverse it." << endl;
cout << "What will that number be?" << endl;
cin >> num;
while(num != 0);
{
remainder = num%10;
reversed = reversed*10 + remainder;
num /=10;
}
cout << "Your reversed number is" << reversed << endl;
}