You are on page 1of 1

#include <iostream>

#include <cmath>
#include <string>
using namespace std;
int main(){

int x,y;
int first[2][3]={{16,18,23},{54,91,41}};
int second[2][3]={{24,52,77},{16,19,59}};
int sum[2][3];

for (y=0;y<2;y++){
for (x=0;x<3;x++){
sum[y][x]=first[y][x]+second[y][x];
cout<<sum[y][x]<<" ";}
cout<<endl;}

system("pause");
return 0;

You might also like