Advertisement
Josif_tepe

Untitled

Oct 13th, 2023
665
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4.    
  5.     int n;
  6.     cin >> n;
  7.    
  8.     int a = n / 10;
  9.     int b = a / 10;
  10.    
  11.     cout << a - (b * 10) << endl;
  12.     return 0;
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement