Test learners

Report a typo

We need your help to improve an adaptive system. There's a program that asks learners what programming language they are learning. There are four options, one of them is correct:

  1. Java
  2. Kotlin
  3. Scala
  4. Python

Your task: read the answer’s number from the standard input and output the result of the test: "Yes!", "No!" or "Unknown number". We hope you know which answer is correct. You don't need to print the question itself.

Sample Input 1:

1

Sample Output 1:

Yes!

Sample Input 2:

6

Sample Output 2:

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

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

Create a free account to access the full topic