Tuesday, November 28, 2023
Envato Elements
HomeCodingDart Program To Check Numbers Using Multiple Operators.

Dart Program To Check Numbers Using Multiple Operators.

Problem Statement

You are given a variable, check, which stores an integer value. You have to create a variable compareCheck which checks if the value stored in the check is less than 75 and greater than or equal to 8. The result should be true if it is between 8 and 75, and false if it isn’t.

Input

The input is the variable check.
The check has already been declared for you.

Output

The output will be the value assigned to compareCheck.

Example

Sample Input

3

Sample Output

false

Program

void main() {
  var check, compareCheck;
	check = 3;
  compareCheck = check;
  if(compareCheck < 75 && compareCheck >= 8)
  {
    print(true);
  }
  else{
    print(false);
  }
}

OUTPUT:

false
RELATED ARTICLES
- Advertisment - Domains + Hosting + Security

Most Popular

Recent Comments