Advertisement
Uwwan

#21483

Mar 20th, 2022
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. #21483
  2.  
  3. f = open('file3.txt')
  4. n = int(f.readline())
  5. c = 0
  6. for i in range(n):
  7.     x = int(f.readline())
  8.     c += x
  9. print(c)
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement