Java program to find the largest of three numbers and then print it. If the numbers are unequal then "numbers are not distinct" is printed. Comparison operator '>' is used to compare two numbers. To find the largest number out of a given numbers you can also use an array.
File Name - largestnumber.java
Output -
0 comments: