From bc1a490352ad872cd02fbc50a43cc3a14138edbd Mon Sep 17 00:00:00 2001 From: Xuefeng-Zhu Date: Sat, 5 Jul 2014 04:04:04 -0400 Subject: [PATCH] p32 --- 32-gcf.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 32-gcf.py diff --git a/32-gcf.py b/32-gcf.py new file mode 100644 index 0000000..40180be --- /dev/null +++ b/32-gcf.py @@ -0,0 +1,8 @@ +def Division(num1,num2): + while num2 != 0: + num1, num2 = num2, num1%num2 + return num1 + +# keep this function call here +# to see how to enter arguments in Python scroll down +print Division(raw_input())