Initial commit

This commit is contained in:
Emma Nora Theuer 2024-09-04 13:22:31 +02:00
parent 8644842962
commit 6fc7563a2b

19
LuckyNumber.java Normal file
View file

@ -0,0 +1,19 @@
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");
}
}
}