Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Operators | Control Structures
C# Basics

bookChallenge: 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

main.cs

copy
123456789101112131415
using 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

main.cs

copy
123456789101112131415
using System; namespace ConsoleApp { class Program { static void Main(string[] args) { int valueA = 7; int valueB = 5; Console.WriteLine(valueA >= 7 && valueB <= 5); } } }

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 3

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

Awesome!

Completion rate improved to 1.59

bookChallenge: Operators

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

main.cs

copy
123456789101112131415
using 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

main.cs

copy
123456789101112131415
using System; namespace ConsoleApp { class Program { static void Main(string[] args) { int valueA = 7; int valueB = 5; Console.WriteLine(valueA >= 7 && valueB <= 5); } } }

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 3
some-alt