Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class yeet{
- public static void main(String[] args) {
- int y=0;
- int z=0;
- int o=0;
- try{Scanner x = new Scanner(System.in);
- y = x.nextInt();
- z = x.nextInt();
- o = x.nextInt();}
- catch(Exception inputmismatcheException){
- System.out.println("pick an integer");
- }
- if (z<y){
- if (z<o){
- System.out.println(z+"is the lowest number");
- }
- }
- if (y<z){
- if (y<o){
- System.out.println(y+"is the lowest number");
- }
- }
- if (o<y){
- if (o<z){
- System.out.println(o+"is the lowest number");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement