Https://online.codingblocks.com/app/player/44267/content/19258/4716

#include
using namespace std;
int main()
{
int n, reversedNumber = 0, remainder;
cout << "Enter an integer: ";
cin >> n;
while(n != 0)
{
remainder = n%10;
reversedNumber = reversedNumber*10 + remainder;
n /= 10;
}
cout << "Reversed Number = " << reversedNumber;
return 0;
}

All source code are showing error not submitted.
What r the issue.Pl support

@ANCODE here is the edited code


you dont have to add statements like “Enter an integer” or "Reversed number = ".
Logic of your code was spot on, no problem in that, but adding extra statements in the code gives wrong answer.
Hope this helps.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.