Skip to content

Commit 24b2d2d

Browse files
authored
Update TriangleQuest.py
it was printing floating value so need to use // for int value
1 parent 59d3fad commit 24b2d2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Math/TriangleQuest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
Problem : https://www.hackerrank.com/challenges/python-quest-1/problem
88
'''
99
for i in range(1,input()): #More than 2 lines will result in 0 score. Do not leave a blank line also
10-
print i*((pow(10,i)-1)/(9))
10+
print i*((10**i-1)//9)

0 commit comments

Comments
 (0)