Assume we have the following three arrays. - int square[5][5]={0} , int product[5][6]; int table[5][6] = {{1,2,3,4,5},{2

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Assume we have the following three arrays. - int square[5][5]={0} , int product[5][6]; int table[5][6] = {{1,2,3,4,5},{2

Post by answerhappygod »

Assume we have the following three arrays.
- int square[5][5]={0} , int product[5][6];
int table[5][6] ={{1,2,3,4,5},{2,4,6,8,10},{20,10,5,3,1},{3,6,9,12,15}};
1) write a function to fill array "square" as shown below:
(find the pattern and use iterations, don't fill the arraydirectly like a[2][2]=9)
1 x x x x
x 4 x x x
x x 9 x x
x x x 16 x
x x x x 25
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply