This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mathpuzzles.java
58 lines (56 loc) · 2.12 KB
/
mathpuzzles.java
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import java.io.*;
public class mathpuzzles
{
void main()throws Exception
{
LOADING z=new LOADING();
z.loading();
disp_mathpuzz u=new disp_mathpuzz();
u.show();
Thread.sleep(2000);
BufferedReader br=new BufferedReader (new InputStreamReader(System.in));
System.out.print("\u000c");
System.out.println("What is 19 times 500 into 0 plus 1?");
int ans=Integer.parseInt(br.readLine());
if(ans==1){
System.out.println("\u000c");
System.out.println("\n\n\n\n\n\n\t\t\t\tCORRECT!");
Thread.sleep(3000);
System.out.println("\u000c");
}
else{System.out.println("\u000c");
System.out.println("\n\n\n\n\n\n\t\t\t\tWRONG...................");
Thread.sleep(3000);
System.out.println("\u000c");
}
System.out.println("250 + ??= 160");
ans=Integer.parseInt(br.readLine());
if(ans==-90){
System.out.println("\u000c");
System.out.println("\n\n\n\n\n\n\t\t\t\tCORRECT!");
Thread.sleep(3000);
System.out.println("\u000c");
}
else{System.out.println("\u000c");
System.out.println("\n\n\n\n\n\n\t\t\t\tWRONG...................");
Thread.sleep(3000);
System.out.println("\u000c");
}
System.out.println("What mathematical symbol can be placed between 5 and 9 to make\n a number less than 9 but more than 5?(Type the symobol itself)");
String c=br.readLine();
String b=".";
boolean d=b.equals(c);
if(d==true){
System.out.println("\u000c");
System.out.println("\n\n\n\n\n\n\t\t\t\tCORRECT!");
Thread.sleep(3000);
System.out.println("\u000c");
}
else{System.out.println("\u000c");
System.out.println("\n\n\n\n\n\n\t\t\t\tWRONG...................");
Thread.sleep(3000);
System.out.println("\u000c");
}
System.out.println("\u000c");
}
}