Question:

How to sum these integers(1,2,3,4) (5,6,7,8) (9,10,11,12) (13,14,15,16) with use 2 dimensional arrays?

by  |  earlier

0 LIKES UnLike

How to sum these integers(1,2,3,4) (5,6,7,8) (9,10,11,12) (13,14,15,16) with use 2 dimensional arrays?

 Tags:

   Report

1 ANSWERS


  1. for (i=0; i<4; i++) {

    sum=0;

    for (j=0; j<4; j++) {

    sum=sum + array[i][j];

    } //End for j

    print sum;

    } //End for i

    So that was not very difficult.  But what language are you using?

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions