Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scanner input=new Scanner(System.in);
- int model;
- System.out.print("Please enter your model number: ");
- model=input.nextInt();
- if (model==119)
- System.out.print("Your car is defective. It must be repaired.");
- else if (model==179)
- System.out.print("Your car is defective. It must be repaired.");
- else if (model>=189 && model<=195)
- System.out.print("Your car is defective. It must be repaired.");
- else if (model==221)
- System.out.print("Your car is defective. It must be repaired.");
- else if (model==780)
- System.out.print("Your car is defective. It must be repaired.");
- else
- System.out.print("Everything is fine with your car!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement