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