RuiViana

mdc_AA.c

Jun 27th, 2019
220
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int mdc(int num1, int num2)
  2. {
  3.     int resto = 1;
  4.     while (resto != 0)
  5.     {
  6.         resto = num1 % num2;
  7.         num1 = num2;
  8.         num2 = resto;
  9.     }
  10.     return num1 ;
  11. }
RAW Paste Data