Skip to content

Commit

Permalink
Merge pull request #46 from vnaypd/patch-2
Browse files Browse the repository at this point in the history
Update TriangleQuest.py
  • Loading branch information
arsho committed Jun 14, 2022
2 parents 59d3fad + 24b2d2d commit 5d7ce33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Math/TriangleQuest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
Problem : https://www.hackerrank.com/challenges/python-quest-1/problem
'''
for i in range(1,input()): #More than 2 lines will result in 0 score. Do not leave a blank line also
print i*((pow(10,i)-1)/(9))
print i*((10**i-1)//9)

0 comments on commit 5d7ce33

Please sign in to comment.