Advertisement
mhdew

Untitled

Mar 28th, 2019
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5.     int n;
  6.     scanf("%d", &n);
  7.  
  8.     int count=0;
  9.     while(1){
  10.         if(n%2!=0) break;
  11.  
  12.         if(n%2==0) count++;
  13.         n=n/2;
  14.     }
  15.  
  16.     if(count%2==0) printf("Chicken First!\n");
  17.     else printf("Egg First!\n");
  18.  
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement