Skip to content

Instantly share code, notes, and snippets.

@whopiyush
Created December 4, 2018 08:19
Show Gist options
  • Select an option

  • Save whopiyush/53a72c1083677c3717901a7de4ce3d29 to your computer and use it in GitHub Desktop.

Select an option

Save whopiyush/53a72c1083677c3717901a7de4ce3d29 to your computer and use it in GitHub Desktop.
//
// 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