Question: question 2 : write a c++ program that declares an array of 10 components of type int , and then use the array to do
question 2 : write a c++ program that declares an array of 10 components of type int , and then use the array to do the following : 1- fill the array components with integers from the user . 2- count and print the number of components that are divisible by the first element in the array . 3- print the array elements , one element in each line followed by '*' depends on the number .
please enter 10 integer numbers : please enter 10 integer numbers : 1 2 3 4 5 6 7 8 9 10 2 2 2 1 1 6 7 3 3 9 10 values are devidable by 1 4 values are devidable by 2 1* 2** 2** 2** 3*** 2** 4**** 1* 5***** 1* 6****** 6****** 7******* 7******* 8******** 3*** 9********* 3*** 10********** 9*********
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
