fork download
  1. #include <stdio.h>
  2.  
  3. int zeroes_count(int n, int counter) {
  4. if (n & 1 || n <= 1)
  5. return counter;
  6. else
  7. return zeroes_count(n / 2, counter + 1);
  8. }
  9.  
  10. int main(void) {
  11. int x = zeroes_count(1280, 0);
  12. printf("%d\n", x);
  13. return 0;
  14. }
Success #stdin #stdout 0s 5292KB
stdin
Standard input is empty
stdout
8