Advertisement
Guest User

Untitled

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