Skip to content

Commit

Permalink
assignment 1
Browse files Browse the repository at this point in the history
  • Loading branch information
kishanrajput23 authored Feb 9, 2021
1 parent 9f95acb commit 7364fa0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Week4/Week 4 Programming Assignment 1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
def arrange_number(a, b):

if a>b:

s=b

else:

s=a

for i in range(1, s+1):

if a%i==0 and b%i==0:

result=i

return result



m=int(input())

n=int(input())

print(arrange_number(m,n))

0 comments on commit 7364fa0

Please sign in to comment.