セクション 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
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください