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
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
Computer Science,
3 months ago
Math,
3 months ago
Computer Science,
7 months ago
Science,
7 months ago
Physics,
11 months ago
Math,
11 months ago
Chemistry,
11 months ago