Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Telerik {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- double first = Double.parseDouble(scanner.nextLine());
- double second = Double.parseDouble(scanner.nextLine());
- double third = Double.parseDouble(scanner.nextLine());
- double result = Double.MIN_NORMAL;
- if (first >= second && first >= third) {
- result = first;
- } else if (second >= first && second >= third) {
- result = second;
- } else if (third >= first && third >= second) {
- result = third;
- }
- System.out.printf("%.0f", result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement