Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Addition of two matrix **Part 2
/* **samuel ugochukwu nwutobo **19 jun 2017 **Addition of two matrix **Part 2 */ #include <iostream> using namespace std; int main() { cout<<"ENTER MATRIX 1"<<endl; int x[3][3]; for(int i =0;i < 3;i++) { for(int j=0;j <3;j++) cin>>x[i][j]; } cout<<"ENTER MATRIX 1"<<endl; int y[3][3]; for(int i =0;i < 3;i++) { for(int j=0;j <3;j++) cin>>y[i][j]; } cout<<endl; cout<<"MATRIX 1"<<endl; for(int i =0;i < 3;i++) { for(int j=0;j <3;j++) cout<<x[i][j]<<" "; cout<<endl; } cout<<endl; cout<<"MATRIX 2"<<endl; for(int i =0;i < 3;i++) { for(int j=0;j <3;j++) cout<<y[i][j]<<" "; cout<<endl; } cout<<endl; cout<<"___________________________\n"; cout<<"MATRIX 1 PLUS MATRIX 2"; cout<<"\n___________________________"; cout<<endl; cout<<endl; cout<<"EQUALS"<<endl; cout<<endl; int z[3][3]; for(int i =0;i < 3;i++) { for(int j=0;j <3;j++) z[i][j]=x[i][j]+y[i][j]; } for(int i =0;i < 3;i++) { for(int j=0;j <3;j++) cout<<z[i][j]<<" "; cout<<endl; } }
run
|
edit
|
history
|
help
0
ddd
BinTree palyground
шаблонизированное наследование
sejmie
POI
Zadanie Kolokwium 2013: Trójkąty i trójkąty
Continuous Sub Set with given sum
template
Test 8(2020)
python