Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Operators | Estructuras de Control
Fundamentos de C#

bookChallenge: Operators

Tarea

Swipe to start coding

  • Declare an int variable for the user's age.
  • Declare a bool variable for membership status.
  • Use comparison operators (>=) to check if age is 65 or older.
  • Use logical operators (||) to check if the user is a member.
  • Use a ternary operator (?:) to assign the message "Eligible for discount" or "Not eligible for discount" based on the conditions.
  • Print the message to the console using Console.WriteLine.

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 3. Capítulo 4
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

close

bookChallenge: Operators

Desliza para mostrar el menú

Tarea

Swipe to start coding

  • Declare an int variable for the user's age.
  • Declare a bool variable for membership status.
  • Use comparison operators (>=) to check if age is 65 or older.
  • Use logical operators (||) to check if the user is a member.
  • Use a ternary operator (?:) to assign the message "Eligible for discount" or "Not eligible for discount" based on the conditions.
  • Print the message to the console using Console.WriteLine.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 3. Capítulo 4
single

single

some-alt