fork download
  1. #include <cstdio>
  2.  
  3. bool odd(int n);
  4. bool even(int n);
  5.  
  6. bool even(int n) {
  7. if (n == 0)
  8. return true;
  9. else
  10. return odd(n - 1);
  11. }
  12.  
  13. bool odd(int n) {
  14. if (n == 0)
  15. return false;
  16. else
  17. return even(n - 1);
  18. }
  19.  
  20. int main() {
  21.  
  22. bool r = odd(655370);
  23.  
  24. printf("%d\n", r);
  25.  
  26. return 0;
  27. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
0