SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<iostream>
  2. using namespace std;
  3. int main ()
  4. {
  5.     int n,a,b,c;
  6.     cin>>n;
  7.     a=n/100;
  8.     b=n/10%10;
  9.     c=n%10;
  10.     if(a==b && b==c && a==c)
  11.     {
  12.         cout<<"da";
  13.     }
  14.     else
  15.     {
  16.         cout<<"nu";
  17.     }
  18.     return 0;
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top