Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner in = new Scanner(System.in);
- double a = Double.parseDouble(in.nextLine());
- double b = Double.parseDouble(in.nextLine());
- double c = Double.parseDouble(in.nextLine());
- if (a > b && a > c) {
- System.out.println(a);
- } else if (b > a && b > c) {
- System.out.println(b);
- } else {
- System.out.println(c);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement