Two test cases failed. print reverse

#include
using namespace std;
int main() {
long long int n;
long long int m;
cin>>n;
while(n!=0)
{
m=n%10;
cout<<m;
n=n/10;
}

return 0;

}

1 Like

i sent in a input as 00000 and output was 0.
i guess that’s the problem. please help

Hy Shaguna,
Please submit your solution again , there was a slight issue in the testcase, we have updated it