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

Operators ChallengeOperators Challenge

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.

cs

main.cs

1. You can use the && operator to join two conditions.

using System;

namespace ConsoleApp
{       
    class Program
    {
        static void Main(string[] args)
        {
            int valueA = 7;
            int valueB = 5;

            Console.WriteLine(valueA >= 7 && valueB <= 5);
        }
    }
}
      

Все було зрозуміло?

Секція 3. Розділ 3
course content

Зміст курсу

C# Basics

Operators ChallengeOperators Challenge

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.

cs

main.cs

1. You can use the && operator to join two conditions.

using System;

namespace ConsoleApp
{       
    class Program
    {
        static void Main(string[] args)
        {
            int valueA = 7;
            int valueB = 5;

            Console.WriteLine(valueA >= 7 && valueB <= 5);
        }
    }
}
      

Все було зрозуміло?

Секція 3. Розділ 3
some-alt