Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

Explanation / Answer

please rate - thanks #include using namespace std; int main() {int num1,num2,num3,sum,smallest,largest; coutnum1; smallest=num1; largest=num1; coutnum2; if(num2largest)      largest=num2;    coutnum3; if(num3largest)      largest=num3; sum=num1+num2+num3; cout