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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!