Lucian_Adrian

Untitled

Aug 4th, 2021
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5.  
  6. int main(){
  7. long long n;
  8. cin >> n;
  9.  
  10. while(n % 10 != (n / 10) % 10 || n % 10 != 0) // ultimele cifre egale
  11. n++;
  12.  
  13. cout << n;
  14.  
  15. return 0;
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment