Utfordring: Operatorer
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); } } }
Takk for tilbakemeldingene dine!
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Can you show me an example of the boolean expression?
What does the full `Console.WriteLine` statement look like?
Can you explain how the `&&` operator works in this context?
Awesome!
Completion rate improved to 1.59
Utfordring: Operatorer
Sveip for å vise menyen
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); } } }
Takk for tilbakemeldingene dine!