Computer Science, asked by fabyzmirza, 7 months ago

Q.1. Write a program to accept three whole numbers (using scanf() and do the following:
1) Print the three numbers
2) Print the product of the three numbers
3) Print the total of the three numbers
4) Print the average of the three numbers
5) Write an output for your program​

Answers

Answered by gandhikeshav862
0

Answer:

Explanation:

Given three numbers A, B and C; The task is to find the largest number among the three.

Examples:

Input: A = 2, B = 8, C = 1

Output: Largest number = 8

Input: A = 231, B = 4751, C = 75821

Output: Largest number = 75821

Recommended: Please try your approach on {IDE} first, before moving on to the solution.

In the below programs, to find the largest of the three number, if, if-else, nested if-else and Ternary operator‘s are used.

Algorithm to find the largest of three numbers:

Similar questions