Advertisement
PavlinBodurov

Untitled

Dec 23rd, 2018
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. package com.company;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Main {
  6.  
  7. public static void main(String[] args) {
  8. Scanner in = new Scanner(System.in);
  9. double a = Double.parseDouble(in.nextLine());
  10. double b = Double.parseDouble(in.nextLine());
  11. double c = Double.parseDouble(in.nextLine());
  12.  
  13.  
  14.  
  15. if (a > b && a > c) {
  16. System.out.println(a);
  17. } else if (b > a && b > c) {
  18. System.out.println(b);
  19. } else {
  20. System.out.println(c);
  21. }
  22.  
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement