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
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
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am