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

bookChallenge: Return Values

Tehtävä

Swipe to start coding

Your task is to create a method that takes a Celsius value, converts it to Fahrenheit, and returns it.

  • Create a method ConvertToFahrenheit that:
    • Accepts one parameter:
      • celsius (double)
    • Converts the Celsius temperature to Fahrenheit using the formula: Fahrenheit = Celsius * 9 / 5 + 32
    • Returns the Fahrenheit value as a double.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 6. Luku 10
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

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

close

bookChallenge: Return Values

Pyyhkäise näyttääksesi valikon

Tehtävä

Swipe to start coding

Your task is to create a method that takes a Celsius value, converts it to Fahrenheit, and returns it.

  • Create a method ConvertToFahrenheit that:
    • Accepts one parameter:
      • celsius (double)
    • Converts the Celsius temperature to Fahrenheit using the formula: Fahrenheit = Celsius * 9 / 5 + 32
    • Returns the Fahrenheit value 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 6. Luku 10
single

single

some-alt