fork download
  1. #include <stdio.h>
  2. int hoge(int a){
  3. if(a%2==0){
  4. return 1+hoge(a/2);
  5. }
  6. else{
  7. return 0;
  8. }
  9. }
  10.  
  11. int main(void) {
  12. int x=hoge(2016);
  13. printf("%d",x);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
5