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 scanner = new Scanner(System.in);
- double a = Double.parseDouble(scanner.nextLine());
- double b = Double.parseDouble(scanner.nextLine());
- double c = Double.parseDouble(scanner.nextLine());
- if (a>=-200 & a<=200 & b>=-200 & b<=200 & c>=-200 & c<=200) {
- if (a>=b & a>=c){
- System.out.println(a);
- }
- else if (b>=c) {
- System.out.println(b);
- }
- else {
- System.out.println(c);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement