Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Return Values | Metoder
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
C#-Grunnleggende

bookChallenge: Return Values

Oppgave

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.

Løsning

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 6. Kapittel 10
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

close

bookChallenge: Return Values

Sveip for å vise menyen

Oppgave

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.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 6. Kapittel 10
single

single

some-alt