Java Program to find the greatest of three numbers using if-elseif statement.

Output: