Question: subject: programming I Write a program to read a series of integers entered by the user until a special sentinel value will be entered by

subject: programming I
subject: programming I Write a program to read a series of integers
entered by the user until a special sentinel value will be entered

Write a program to read a series of integers entered by the user until a special sentinel value will be entered by the user to indicate the end of the input. The sentinel value is either zero (0) or a negative number. The program specifies each number as divided by two, divided by three, divided by four, and divided by five and stores numbers in suitable array(s) that are dividedby2, dividedby 3 , dividedby 4 , and dividedby 5. Finally, the program displays how many numbers are entered by the user. how many numbers are there in each array and the elements of arrays separately. Enter integers (either 0 or negative value to terminate) : 2014362291624171840450 You entered 11 numbers. 8 of them are divided by two. The list is given below. 2014362216241840 5 of them are divided by three. The list is given below. 369241845 5 of them are divided by four. The list is given below. 2036162440 3 of them are divided by five. The list is given below. 204045

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!