from GCDFunction import gcd # 두 정수를 입력 받는다. n1, n2 = eval(input("두 정수를 입력하세요: ")) print(n1, "와/과", n2, "의 GCD는", gcd(n1, n2), "입니다.")
#!/usr/bin/python3 # written by: atholcomb # TestGCDFunction.py # Using the GCDFunction module, the program computes the gcd from GCDFunction import gcd # import the gcd function # Prompt the user to enter two integers n1 = eval(input("Enter the first integer: ")) n2 = eval(input("Enter the second integer: ")) print("The greatest common divisor for", n1, "and", n2, "is", gcd(n1, n2))
#from GCDFunction import gcd # gcd 함수를 임포트한다. #import GCDFunction from GCDFunction import gcd, sum #from GCDFunction import * # 사용자로부터 두 정수를 입력받는다. n1 = eval(input("첫 번째 정수를 입력하세요: ")) n2 = eval(input("두 번째 정수를 입력하세요: ")) #print(n1, "와/과", n2, "의 최대공약수는", gcd(n1, n2), "입니다.") #print(n1, "와/과", n2, "의 최대공약수는", GCDFunction.gcd(n1, n2), "입니다.") print(n1, "와/과", n2, "의 최대공약수는", gcd(n1, n2), "입니다.") print(n1, "와/과", n2, "의 합", sum(n1, n2), "입니다.")
from GCDFunction import gcd # Import the module # Prompt the user to enter two integers n1 = int(input("Enter the first integer: ")) n2 = int(input("Enter the second integer: ")) print("The greatest common divisor for", n1, "and", n2, "is", gcd(n1, n2))
from GCDFunction import gcd n1 = eval(input("Enter the first integer:")) n2 = eval(input("Enter the second integer:")) print("The greatest common divisor for", n1, n2, "is", gcd(n1, n2))
from GCDFunction import gcd n1 = eval(input("Enter the first number: ")) n2 = eval(input("Enter the second number: ")) print("The greatest common divisor for n1 and n2 is:", gcd(n1,n2))
from GCDFunction import gcd # Import the module # Prompt the user to enter two integers n1 = eval(input("Enter the first integer: ")) n2 = eval(input("Enter the second integer: ")) print("The greatest common divisor for", n1, "and", n2, "is", gcd(n1, n2))
#-*- coding: UTF-8 -*- from GCDFunction import gcd n1 = eval(input("first number: ")) n2 = eval(input("second number: ")) print(n1, " and ", n2, " gcd ==>", gcd(n1, n2))
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jan 24 10:35:08 2019 @author: yang """ # List 6-6 from GCDFunction import gcd # Import the gcd function # Prompt the user to enter two integers n1 = eval(input("Enter the first integer: ")) n2 = eval(input("Enter the second integer: ")) print("The greatest commom divisor for", n1, "and", n2, "is", gcd(n1, n2))