qberik

Untitled

Oct 28th, 2021
804
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int NOD( int a, int b ){
  2.     if (a == b)
  3.       return a;
  4.     else
  5.       if (a > b)
  6.         return NOD(a - b,b);
  7.       else
  8.         return NOD(a,b-a);
  9. }
RAW Paste Data