-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathReadMind.java
More file actions
42 lines (31 loc) · 1.29 KB
/
ReadMind.java
File metadata and controls
42 lines (31 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import java.util.Scanner;
public class ReadMind {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Read Mind Puzzle");
scanner.nextLine();
System.out.println("Think of Number between 1 to 9");
scanner.nextLine();
System.out.println("Now Multiply the number with 9");
scanner.nextLine();
System.out.println("Now do the Sum of Digit");
scanner.nextLine();
System.out.println("Now do -5 from the result");
scanner.nextLine();
System.out.println("If your result is 1 So treat as A and If 2 treat as B and so on");
scanner.nextLine();
System.out.println("Think of a Country which starts from your selected letter");
scanner.nextLine();
System.out.println("Now think of a Animal name\n which starts from last character of country name");
scanner.nextLine();
System.out.println("Now think of a Color name\n which starts from last character of Animal name");
scanner.nextLine();
System.out.println("Now Time to read your Mind");
scanner.nextLine();
System.out.println("The Answer is ");
scanner.nextLine();
System.out.println("********************************************");
System.out.println("Orange Kangaroo in Denmark");
System.out.println("********************************************");
}
}