gcd python

30

#My Python Lectures: https://cutt.ly/python-full-playlist
#Codechef Problem Solution Video: https://cutt.ly/codeChefContestProblemSolution

import math
print("Res =",math.gcd(2, 1))

#Res = 1
import math
#math.gcd(*integers)

math.gcd(3, 9)
math.gcd(2, 3, 9)
math.gcd(2, 3, 4, 12, ...)

Comments

Submit
0 Comments