Given an Integer N, write a program to reverse it.

 

Given an Integer N, write a program to reverse it.






OURSHOPKEEPER








#include <iostream> 
using namespace std;
 int main(){
      int nt;
      cin>>t;
      while(t--){
          int digit=0u=0;
       cin>>n;
       while(n>0){
           digitn%10;
            nn/10;
            uu*10 +digit;
       }
          cout<<u;
    
       cout<<"\n";
      }
 }




    


Click on the above button to download the code.



Post a Comment

If you have furthur QUERIES please let us know

Previous Post Next Post