fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x,y,z;
  5. x=25;
  6. y=250;
  7.  
  8.  
  9. // ユーグリッドの互除法
  10. while((z = x % y) != 0) // yで割り切れるまでループ
  11. {
  12. x = y;
  13. y = z;
  14. }
  15.  
  16. return z;
  17.  
  18. }
  19.  
Success #stdin #stdout 0s 5268KB
stdin
Standard input is empty
stdout
Standard output is empty