Skip to content

Commit 665a861

Browse files
committed
Python code for "Highest divisor"
1 parent 4f47618 commit 665a861

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
n = int(input())
2+
l = []
3+
for i in range(1,11):
4+
if n % i == 0:
5+
l.append(i)
6+
7+
print(max(l))
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://www.codechef.com/problems/HDIVISR

0 commit comments

Comments
 (0)