Lucian_Adrian

Untitled

Aug 4th, 2021
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1.  
  2. #include <bits/stdc++.h>
  3. using namespace std;
  4. int main()
  5. {
  6. int a;
  7. cin >> a;
  8. if ((a%100)%10 == a/100 && a/100 == (a%100)/10 )
  9. cout << "da";
  10. else
  11. cout << "nu";
  12.  
  13. return 0;
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment