Initial commit
This commit is contained in:
parent
8644842962
commit
6fc7563a2b
1 changed files with 19 additions and 0 deletions
19
LuckyNumber.java
Normal file
19
LuckyNumber.java
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue