Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Array Loops | Taulukot
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
C# Perusteet

bookChallenge: Array Loops

Tehtävä

Swipe to start coding

Your task is to calculate the total sales for a set of days using a method.

  • Create a method CalculateTotalSales that:
    • Accepts an array of double values 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.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 5. Luku 6
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

close

bookChallenge: Array Loops

Pyyhkäise näyttääksesi valikon

Tehtävä

Swipe to start coding

Your task is to calculate the total sales for a set of days using a method.

  • Create a method CalculateTotalSales that:
    • Accepts an array of double values 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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 5. Luku 6
single

single

some-alt