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); } } }
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 3. Hoofdstuk 3
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
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); } } }
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 3. Hoofdstuk 3