Секція 1. Розділ 50
single
Challenge: Array Loops
Свайпніть щоб показати меню
Завдання
Проведіть, щоб почати кодувати
Your task is to calculate the total sales for a set of days using a method.
- Create a method
CalculateTotalSalesthat:- Accepts an array of
doublevalues representing daily sales. - Uses a for loop to iterate through the array.
- Calculates the total sum of all sales.
- Returns the total as a
double.
- Accepts an array of
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 50
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат