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