Skip to content

Commit b1dea73

Browse files
Merge pull request #2648 from Inbaselvan-ayyanar/patch-3
Update gcd.py
2 parents a20babb + 808474c commit b1dea73

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gcd.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
b = int(input("Enter number 2 (b): "))
77

88
i = 1
9+
gcd=-1
910
while i <= a and i <= b:
1011
if a % i == 0 and b % i == 0:
1112
gcd = i

0 commit comments

Comments
 (0)