blob: 5e5826b36aa60d56ae4f937a2c03e243a2751249 (
plain) (
blame)
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
|
import java.io.BufferedReader;
import java.io.InputStreamReader;
class TirePressure {
public static void main(String[] args) throws java.io.IOException {
int Tire1,Tire2,Tire3,Tire4;
System.out.println("Right Front");
BufferedReader Tire1I = new BufferedReader(new InputStreamReader(System.in));
Tire1 = Integer.parseInt(Tire1I.readLine());
System.out.println("Left Front");
BufferedReader Tire2I = new BufferedReader(new InputStreamReader(System.in));
Tire2 = Integer.parseInt(Tire2I.readLine());
System.out.println("Right Rear");
BufferedReader Tire3I = new BufferedReader(new InputStreamReader(System.in));
Tire3 = Integer.parseInt(Tire3I.readLine());
System.out.println("Left Rear");
BufferedReader Tire4I = new BufferedReader(new InputStreamReader(System.in));
Tire4 = Integer.parseInt(Tire4I.readLine());
if (Tire1 == Tire2 && Tire3 == Tire4){
System.out.println("Tire Pressure is OK");
} else {
System.out.println("Tire pressure is wrong");
}
}}
//By msglm; Licensed under the AGPL v3
|