Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Program {
- /* Garland Watson , Ricky Crosley
- Garland; driver, Ricky: navigator
- 1/28/20
- */
- public static void main(String[] args) {
- double x;
- Scanner sc = new Scanner(System.in);
- //question
- System.out.println("please enter tire preasure in psi");
- //input
- x = sc.nextDouble();
- //if bad
- if (x<=25) {
- System.out.println("tire pressure low");
- }
- //if too good
- if (x>70) {
- System.out.println("too much lol");
- }
- //if good
- else if (x>25) {
- System.out.println("your tire pressure is all good chief");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement