Created
December 4, 2018 08:19
-
-
Save whopiyush/53a72c1083677c3717901a7de4ce3d29 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Created by Lab on 12/3/2018. | |
| #include <conio.h> | |
| #include <iostream> | |
| using namespace std; | |
| int main(){ | |
| int i,j,a[2][2]; | |
| cout << " Enter Matrix"; | |
| for(i=0 ; i < 2 ; i++){ | |
| for(j=0; j<2;j++) { | |
| cin >> a[i][j]; | |
| } | |
| } | |
| cout << "Matrix: \n"; | |
| for(i=0;i<2;i++){ | |
| for(j=0;j<2;j++){ | |
| cout << a[i][j] << "\t"; | |
| } | |
| printf("\n"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment