Question: Write a C++ program that creates a 2-dimensional array of 10x5 elements that are populated by random numbers between 0 and 49(hint use the rand()
Write a C++ program that creates a 2-dimensional array of 10x5 elements that are populated by random numbers between 0 and 49(hint use the rand() function) the program should then ask the user for a number between 0 and 49 and searches the array for that number. If it finds it it returns both indices of the 2-D array, otherwise, it returns a message that says "I did not find this number." Re run your program multiple times to make sure that it works( it should show you a different answers each time).
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
