4) Write a program that inputs three integers from the keyboard and prints the s
ID: 3616362 • Letter: 4
Question
4) Write a program that inputs three integers from the keyboard and prints the sum,
average, product, smallest and largest of these numbers.
Test Data:
(i)
Please enter Integer 1 : 24
Please enter Integer 2 : 34
Please enter Integer 3 : 54
Sum of 24, 34 and 54 is 112
Average of 24, 34 and 54 is 37
Product of 24, 34 and 54 is 44064
Smallest of 24, 34 and 54 is 24
Largest of 24, 34 and 54 is 54
(ii)
Please enter Integer 1 : 5
Please enter Integer 2 : 1
Please enter Integer 3 : 9
Sum of 5, 1 and 9 is 15
Average of 5, 1 and 9 is 5
Product of 5, 1 and 9 is 45
Smallest of 5, 1 and 9 is 1
Largest of 5, 1 and 9 is 9