Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class BiggestOfThree {
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
- double first = input.nextDouble();
- double second = input.nextDouble();
- double third = input.nextDouble();
- if (first > second && first > third) {
- System.out.println(first);
- } else if (second > first && second > third){
- System.out.println(second);
- } else {
- System.out.println(third);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement