Advertisement
szkoleniaTIK

Optymalny algorytm Euklidesa

Feb 23rd, 2020
1,216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a=18
  2. b=12
  3. while b!=0:
  4.     r=a%b
  5.     a=b
  6.     b=r
  7. print (a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement