Posts

Showing posts with the label reads N inputs and prints the sum of given inputs

coding practice-8

 write a program reads N inputs and prints the sum of given inputs           n=int(input())           s=0           for i in range(n):                    s+=int(input())           print(s)