Advertisement
MonsterScripter

CodinGame_2023_08_21__23_07_45__even.c

Aug 21st, 2023 (edited)
614
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.15 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5.     int n = 14;
  6.     while (n % 2 == 0) {
  7.         n /= 2;
  8.     }
  9.     printf("%d\n", n);
  10.     return 0;
  11. }
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement