Program to Find the Largest Number Among Three Numbers
Example:
Enter three numbers: 7 10 5
The largest number is 10
Output:
The program takes three numbers as input and returns the largest number among them.
Explanation:
In this program, we take three integers as input from the user and compare them using if-else statements to find the largest number. We first check if the first number is largest. If not, we check if the second number is largest. If not, we assume the third number is largest. Finally, the largest number is printed as output.
Use:
This program can be used in situations where we need to find the largest number among a given set of numbers. It can be used in various fields such as finance, statistics, data analysis, etc.
Summary:
This program helps to find the largest number among three given numbers. It is a basic program that uses if-else statements to compare the three numbers and return the largest one.