Write a program greatest of 3 numbers
Answers
Answered by
0
Answer:
Below is the C program to find the largest among the three numbers: Example 1: Using only if statements to find the largest number. printf ( "%d is the largest number." , B); if (C >= A && C >= B). please mark me as brainliest.
Answered by
0
Explanation:
Take the three numbers and store it in the variables num1, num2 and num3 respectively.
Firstly check if the num1 is greater than num2.
If it is, then check if it is greater than num3.
If it is, then print the output as “num1 is the greatest among three”.
Otherwise print the ouput as “num3 is the greatest among three”.
Similar questions