Challenge: Operators
In the Console.WriteLine
statement, write a boolean (logical) expression which outputs true
only if valueA
is greater or equal to 7 and valueB
is less or equal to 5
.
main.cs
123456789101112131415using System; namespace ConsoleApp { class Program { static void Main(string[] args) { int valueA = 7; int valueB = 5; Console.WriteLine(___); } } }
You can use the &&
operator to join two conditions.
main.cs
123456789101112131415using System; namespace ConsoleApp { class Program { static void Main(string[] args) { int valueA = 7; int valueB = 5; Console.WriteLine(valueA >= 7 && valueB <= 5); } } }
Bedankt voor je feedback!
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
What would the full `Console.WriteLine` statement look like?
Can you explain how the `&&` operator works in this context?
Can you show an example with specific values for `valueA` and `valueB`?
Awesome!
Completion rate improved to 1.59
Challenge: Operators
Veeg om het menu te tonen
In the Console.WriteLine
statement, write a boolean (logical) expression which outputs true
only if valueA
is greater or equal to 7 and valueB
is less or equal to 5
.
main.cs
123456789101112131415using System; namespace ConsoleApp { class Program { static void Main(string[] args) { int valueA = 7; int valueB = 5; Console.WriteLine(___); } } }
You can use the &&
operator to join two conditions.
main.cs
123456789101112131415using System; namespace ConsoleApp { class Program { static void Main(string[] args) { int valueA = 7; int valueB = 5; Console.WriteLine(valueA >= 7 && valueB <= 5); } } }
Bedankt voor je feedback!