Advertisement
Guest User

Untitled

a guest
Nov 26th, 2015
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. Scanner input=new Scanner(System.in);
  2. int model;
  3.  
  4. System.out.print("Please enter your model number: ");
  5. model=input.nextInt();
  6.  
  7. if (model==119)
  8. System.out.print("Your car is defective. It must be repaired.");
  9.  
  10. else if (model==179)
  11. System.out.print("Your car is defective. It must be repaired.");
  12.  
  13. else if (model>=189 && model<=195)
  14. System.out.print("Your car is defective. It must be repaired.");
  15.  
  16. else if (model==221)
  17. System.out.print("Your car is defective. It must be repaired.");
  18.  
  19. else if (model==780)
  20. System.out.print("Your car is defective. It must be repaired.");
  21.  
  22. else
  23. System.out.print("Everything is fine with your car!");
  24.  
  25.  
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement