#include
using namespace std;
int main() {
int n,r,rev;
cin>>n;
while(n!=0)
{
r=n%10;
rev=rev*10+r;
n=n/10;
}
cout<<rev;
return 0;
}
this my code for print reverse which CB IDE IS GIVING INCORRECT OUTPUT SINCE TOMMOROW
WHILE IT IS PERFECTLY ALRIGHT WITH OTHER IDE’S.