Advertisement
Guest User

Untitled

a guest
Dec 14th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n;
  8.     int x;
  9.     cin>>n;
  10.     cin>>x;
  11.     if(n > 99 && n < 999){
  12.         n = n % 10 ;
  13.         x = n / 10;
  14.         n = x+n;
  15.         cout<<n;
  16.     }
  17.  
  18.  
  19.  
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement