C program (not C++) Assume we have the following three arrays. - int square[5][5]={0} , int product[5][6]; int table[5][

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

C program (not C++) Assume we have the following three arrays. - int square[5][5]={0} , int product[5][6]; int table[5][

Post by answerhappygod »

C program (not C++)
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}};
The partially initialized array "table" can be viewed as a primitive spreadsheet, in which the last column and
bottom row have been left blank. Write the code to fill in this row and column with the totals of each column, each row , and the grand total.
1 2 3 4 5 ?
2 4 6 8 10 ?
20 10 5 3 1 ?
3 6 9 12 15 ?
? ? ? ? ?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply