Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class yeet{
  3.  
  4. public static void main(String[] args) {
  5. int y=0;
  6. int z=0;
  7. int o=0;
  8. try{Scanner x = new Scanner(System.in);
  9. y = x.nextInt();
  10. z = x.nextInt();
  11. o = x.nextInt();}
  12. catch(Exception inputmismatcheException){
  13. System.out.println("pick an integer");
  14. }
  15. if (z<y){
  16. if (z<o){
  17. System.out.println(z+"is the lowest number");
  18. }
  19. }
  20. if (y<z){
  21. if (y<o){
  22. System.out.println(y+"is the lowest number");
  23. }
  24. }
  25. if (o<y){
  26. if (o<z){
  27. System.out.println(o+"is the lowest number");
  28. }
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement