Question: Write a program whose inputs are three integers, and whose output is the largest of the three integers, followed by a count of the number

Write a program whose inputs are three integers, and whose output is the largest of the three integers, followed by a count of the number of times that largest integer appears.
Ex: If the input is 7153, the output is:
15
1
Ex: If the input is 998, the output is:
9
2
Hint: Start by writing code that just outputs the largest integer and submit to get most of the points. Then, update your code to output both the largest integer and the count. Incremental development is a great habit to practice!
538368.2966336.qx3zqy7

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!