Question: In function mam declare an integer array called num1 with 30 elements and declare a second integer array called num2 with 21 elements. To each

 In function mam declare an integer array called num1 with 30

In function mam declare an integer array called num1 with 30 elements and declare a second integer array called num2 with 21 elements. To each element of num 1 assign a random number between 1 and 50; print the numbers. In a for loop, copy the first 21 numbers from num1 to num2. In another for loop print the element values from num2, seven values per line. Find an algorithm that will print them from one loop, not 3 loops

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!