Advertisement
szkoleniaTIK

Optymalny algorytm Euklidesa

Feb 23rd, 2020
859
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
RAW Paste Data Copied
Advertisement