fork download
  1. #include <stdio.h>
  2.  
  3. int gojoh(int a, int b){
  4. int r;
  5. r = a%b;
  6. if(r==0){
  7. return b;
  8. }
  9. else{
  10. gojoh(b,r);
  11. }
  12. }
  13. int main(void) {
  14. printf("%d", gojoh(100,101));
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0.01s 5292KB
stdin
Standard input is empty
stdout
1