Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int row,column;
- int arr1[3][3],arr2[3][3],arr3[3][3];
- cout<<"Enter matix 1 :: "<<endl;
- for(int i=0; i<3; i++){
- for(int j=0; j<3; j++){
- cin>>arr1[i][j];
- }
- }
- cout<<"Enter matix 2 :: "<<endl;
- for(int i=0; i<3; i++){
- for(int j=0; j<3; j++){
- cin>>arr2[i][j];
- }
- }
- cout<<"Enter matix 3 "" "<<endl;
- for(int i=0; i<3; i++){
- for(int j=0; j<3; j++)
- {
- cin>>arr3[i][j];
- }
- }
- cout<<endl<<endl;
- for(int i=0; i<3; i++)
- {
- for(int j=0; j<3; j++){
- cout<<arr1[i][j]+arr2[i][j]+arr3[i][j]<<" ";
- }
- cout<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment