-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathExercise29.java
More file actions
26 lines (19 loc) · 777 Bytes
/
Exercise29.java
File metadata and controls
26 lines (19 loc) · 777 Bytes
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
import java.util.Scanner;
public class Exercise29{
public static void main(String []args){
Scanner scanner = new Scanner(System.in);
System.out.println("Input right front pressure");
int rightFront = scanner.nextInt();
System.out.println("Input left front pressure");
int lefttFront = scanner.nextInt();
System.out.println("Input right rear pressure");
int rightRear = scanner.nextInt();
System.out.println("Input left rear pressure");
int leftRear = scanner.nextInt();
if ( rightFront == lefttFront && rightRear == leftRear){
System.out.println("Inflation is OK");
} else {
System.out.println("Inflation is NOT OK");
}
}
}