Skip to content

Commit

Permalink
Update Day 12.py
Browse files Browse the repository at this point in the history
  • Loading branch information
GJAnsah authored Mar 5, 2019
1 parent ddaff97 commit fea15a4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Day 12.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,29 @@
n = int(input())
for i in range(1,11,1):
print(n,"x",i,"=",n*i)




'''
HackerRank big sum: https://goo.gl/5a1Qtj
'''
#solution
def aVeryBigSum(count,ar):
result = 0
i=0
while i<count:
result+=ar[i]
i+=1
return (result)


if __name__ =='__main__':
ar_count = int(input())

ar = list(map(int, input().rstrip().split()))

result = aVeryBigSum(ar_count,ar)


print(result)

0 comments on commit fea15a4

Please sign in to comment.