Question: IN C LANGUAGE Part 5: You must use WHILE loops in this question [0.75 marks] You are asked to input a line of data containing

IN C LANGUAGE

IN C LANGUAGE Part 5: You must use WHILE loops in this

Part 5: You must use WHILE loops in this question [0.75 marks] You are asked to input a line of data containing an unknown amount of numbers. Each number is one of the numbers 1 to 9. A number can appear zero or more times. The number O indicates the end of the data. Some sample data are: 37 44 555 336 6 6 6222111111777 79339660 Write a program to read the data once and display the number that appears the most in consecutive positions (one after the other) and the number of times it appeared. Ignore the possibility of a tie. For the above data, output should be: "The number 1 appeared 6 times." Show (Printscreen and Paste) the output of your program and the code you modified side by side. [*** Insert screen shot here ***]

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!