Answers for "Java program to find largest of three numbers using nested if"

0

Java program to find largest of three numbers using nested if

public class Main{public static void main(String[] args) {double a = 500, b = 1000, c = 1500;if( a >= b && a >= c)System.out.println(a + " largest number");else if (b >= a && b >= c)System.out.println(b + " largest number");elseSystem.out.println(c + " largest number");}}
Posted by: Guest on June-12-2021

Code answers related to "Java program to find largest of three numbers using nested if"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language