Last Updated: 14 August, 2022
On this page, we are going to learn how to write a Java program to find the smallest number among three numbers.
In the given program 1, three different numeric values are written in the program and to find the smallest number, the if-else statements are used.
In the other program 2, there is one change three numeric values are taking from the keyword (user input) remaining operations are same.
Let's see the Java program implementation.
Output
70 is the smallest number.
Output
Enter the first number: 40
Enter the second number: 10
Enter the third number: 70
10 is the smallest number.
That's all guys, hope this Java Program is helpful for you.
Happy Learning... 😀
feedback@javabytechie.com