Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Even Number Collector | Getting Started with Loops
Java Loops
セクション 1.  4
single

single

bookChallenge: Even Number Collector

メニューを表示するにはスワイプしてください

タスク

スワイプしてコーディングを開始

Calculate the total expenses from a list of daily expenses using a for loop.

  1. Create a variable named total and set it to 0.0 — this will store the running sum of expenses.
  2. Use a for loop to go through each element in the expenses array.
  3. In each iteration, add the current expense to total.
  4. After the loop finishes, return the total value.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 1.  4
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt