Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 510 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 510 Bytes

Problem 015

Write a program including a function named 'sumlist' which calculates the sum of all numbers in the given list.

First line of input is n then n lines of numbers follows.

Persian Description

برنامه ای بنویسید شامل یک تابع به نام sumlist که مجموع اعداد لیست را محاسبه کند

ورودی شامل یک عدد n و سپس n عدد برای اعضای لیست.

Sample Input/Output

Input:

4
8
6
2
10

Output:

30