Question: 2 Write a program to define a 1D array of 1000 element and fill it with a random values (using rand() function) between 1
2 Write a program to define a 1D array of 1000 element and fill it with a random values (using rand() function) between 1 and 1000 (integers), then searches and counts the number of values that can be exactly divided by 5. Finally print these values with their index numbers.
Step by Step Solution
3.41 Rating (151 Votes )
There are 3 Steps involved in it
Sure heres an example program that does what you described include include include Define an array o... View full answer
Get step-by-step solutions from verified subject matter experts
