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 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
Get step-by-step solutions from verified subject matter experts
