Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: else Keyword | Strutture di Controllo
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Fondamenti di C#

book Challenge: else Keyword

Compito

Swipe to start coding

  • Declare an integer variable age to store the user’s age.
  • Declare a boolean variable isMember to indicate if the user is a member.
  • Use an if-else statement to check the following conditions:
    • If the user is 65 or older or isMember is true, print: Eligible for discount
    • Otherwise, print: Not eligible for discount

Soluzione

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 3. Capitolo 11
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

close

book Challenge: else Keyword

Scorri per mostrare il menu

Compito

Swipe to start coding

  • Declare an integer variable age to store the user’s age.
  • Declare a boolean variable isMember to indicate if the user is a member.
  • Use an if-else statement to check the following conditions:
    • If the user is 65 or older or isMember is true, print: Eligible for discount
    • Otherwise, print: Not eligible for discount

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 3. Capitolo 11
single

single

some-alt