Fixed typo

This commit is contained in:
Abhinav Anand 2021-01-25 22:13:23 +05:30 committed by GitHub
parent a3e9ee2ece
commit a480118b7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ def extended_euclidean_gcd(a, b)
end end
puts "GCD(3, 5) = " + extended_euclidean_gcd(3, 5).to_s puts "GCD(3, 5) = " + extended_euclidean_gcd(3, 5).to_s
# GCD(3, 6) = 3 # GCD(3, 5) = 1
puts "GCD(3, 6) = " + extended_euclidean_gcd(3, 6).to_s puts "GCD(3, 6) = " + extended_euclidean_gcd(3, 6).to_s
# GCD(3, 6) = 3 # GCD(3, 6) = 3
puts "GCD(6, 3) = " + extended_euclidean_gcd(6, 3).to_s puts "GCD(6, 3) = " + extended_euclidean_gcd(6, 3).to_s