Question: Write a function that takes as a parameter an integer (as a long long value) and prints the number of maximum, minimum and average of

Write a function that takes as a parameter an integer (as a long long value) and prints the number of maximum, minimum and average of all digits. Format the output in two columns and round off all real numbers to four decimal places. Also write a program to test your solution. Hint: use the % and / operators to parse the input number into its digits. Your output should look like this one: Please, enter a long integer number 15441214892 Input number 15441214892 Largest digit: Smallest digit: Average of digits: 3.7272 9 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
