Здравейте! На тази задача:
Problem 6. Sum of 5 Numbers
Write a program that enters 5 numbers (each number will be on a separate/new line), calculates and prints their sum.
Examples:
numbers | sum |
---|---|
1 2 3 4 5 | 15 |
10 10 10 10 10 | 50 |
Така ли трябва да изглежда входа:
let input = [
10,
10,
10,
10,
10
]