We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 717b2c2 commit e51a67eCopy full SHA for e51a67e
Python greatest common factor
@@ -0,0 +1,8 @@
1
+a = int (input('a = '))
2
+b = int (input('b = '))
3
+r = a % b
4
+while r != 0:
5
+ a = b
6
+ b = r
7
+ r = a % b
8
+print ('\nggt =', b)
0 commit comments