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

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
Get step-by-step solutions from verified subject matter experts
