fork download
  1. #include <stdio.h>
  2.  
  3. int gcd(int a, int b) {
  4. if (a%b==0) return b;
  5. else return gcd(b,a%b);
  6. }
  7.  
  8. main() {
  9. int a;
  10. a=gcd(48,27);
  11. printf("%d\n",a);
  12. return 0;
  13. }
  14.  
stdin
Standard input is empty
compilation info
prog.c:8: warning: return type defaults to ‘int’
stdout
3