Contenido del Curso
C# Basics
C# Basics
if-condition Challenge
Write an if-condition which checks if the variable x
is in the range of 40 to 70 (including 40 and 70). Use the <=
operators for comparison. If the condition is true, it should output "In Range".
main
- The syntax of an if-condition is:
if(condition) { /* code to execute */ }
main
¿Todo estuvo claro?