Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: if Condition | Ohjausrakenteet
C# Perusteet

bookChallenge: if Condition

Tehtävä

Swipe to start coding

  • Declare an integer variable for the user’s age.
  • If the user is 18 or older, print Access granted.
  • If the user is between 13 and 17, print Access limited.
  • If the user is 12 or younger, print Access denied.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 3. Luku 8
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

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

close

bookChallenge: if Condition

Pyyhkäise näyttääksesi valikon

Tehtävä

Swipe to start coding

  • Declare an integer variable for the user’s age.
  • If the user is 18 or older, print Access granted.
  • If the user is between 13 and 17, print Access limited.
  • If the user is 12 or younger, print Access denied.

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 3. Luku 8
single

single

some-alt