Java/LuckyNumber.java

20 lines
637 B
Java
Raw Permalink Normal View History

2024-09-04 13:22:31 +02:00
import java.util.Scanner;
public class LuckyNumber {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Enter your nationality:");
String nationality = scanner.nextLine();
if (nationality.equals("de")) {
System.out.println("Ich mach jetzt nicht den offensichtlichen 88 Witz\n");
} else if (nationality.equals("pl")) {
System.out.println("Twój szczęśliwy numer to 2137.\n");
} else {
System.out.println("How the fuck am I supposed to know what your lucky number is????\n");
}
}
}