Check the value

Report a typo

Write a program that reads an integer value and checks if it is less than 10 and greater than 0.

Your program should print a boolean value (true or false).

Sample Input 1:

0

Sample Output 1:

false
Write a program in Java 17
import java.util.Scanner;

class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// put your code here
}
}
___

Create a free account to access the full topic