Advertisement
RuiViana

mdc_AA.c

Jun 27th, 2019
474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement