#include <iostream>
using namespace std;
int main() {
int arr[4][5] = {
{3,5,6},
{7,8,3},
{10,2,7},
{9,7,3},
};
for(int i=0;i<4;i++)
{
int sum=0;
for(int j=0;j<4;j++)
{
sum = sum + arr[i][j];
}
cout<< "the sum for "<<i+1<<"row is"<<sum<<endl;
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: