Advertisement
Abelsor

S3_Ejercicio_5

Feb 23rd, 2023 (edited)
864
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. int main(){
  4.    int n;
  5.    
  6.    cin>>n;
  7.    
  8.    while(n>0){
  9.    
  10.     cout<<n%10;
  11.     n = n/10;
  12.    }
  13.    
  14.     return 0;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement