Challenge: Build a Quiz
Make a simple switch-based quiz:
Ask:
"What’s the capital of France?"1 = Berlin, 2 = Madrid, 3 = Paris
Use
switchto check the answer.
Challenge: Build a Quiz
Make a simple switch-based quiz:
Ask:
"What’s the capital of France?"1 = Berlin, 2 = Madrid, 3 = Paris
Use
switchto check the answer.
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// Write your code here
}
}
Project: Build a quiz