Check the value

Report a typo

Write a program that reads a value and checks if it is less than 10.

It should print true if it is less than 10 or false otherwise.

Sample Input 1:

5

Sample Output 1:

true
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