Menu

(Solved) : Exercise 1 Conditional Binary Array Write C Program Fills Array Size 20 Based Subscripts I Q36374971 . . .

Exercise#1 : Conditional Binary Array Write a C++ program that fills an array of size 20 based on its subscripts/indexes. TheExercise#1 : Conditional Binary Array Write a C++ program that fills an array of size 20 based on its subscripts/indexes. The program fills an array cell as 0 if the index is a prime number and 1 otherwise. The program then prints the array that would have only binary data, i.e. 0’s and l’s. Sample input/ output: Array elements: θ θ θ θ 1 θ 1 θ 1 1 1 θ 1 θ 1 1 101e process returned θ (6×0) execution time : θ.201 s Press any key to continue. Show transcribed image text

Expert Answer


Answer to Exercise 1 Conditional Binary Array Write C Program Fills Array Size 20 Based Subscripts I Q36374971 . . .

OR