Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class LowestABC {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- System.out.println("Please enter A");
- int a = scanner.nextInt();
- System.out.println("Please Enter B");
- int b = scanner.nextInt();
- System.out.println("Please enter C");
- int c = scanner.nextInt();
- if (a<b && a<c)
- {
- System.out.println( a + " a is the lowest number");}
- if (b<a && b<c)
- {
- System.out.println(b + " b is the lowest number");}
- if (c<a && c<b)
- {
- System.out.println(c + " c is the lowest number");}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement