Question: Create a flowchart for an algorithm that will receive numbers from the user until the user enters 0 . Once the user enters 0 ,

Create a flowchart for an algorithm that will receive numbers from the user until the user enters 0. Once the user enters 0, the program should output the maximum number of consecutive 1s that were entered. For example, if the user inputs 9,1,1,4,3,5,6,1,1,1,3,3,0; your program should output the value 3. This is because there is a series of 3 consecutive 1s in the input.

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 Programming Questions!