diff --git a/math/ADD_TWO_MATRIX b/math/ADD_TWO_MATRIX new file mode 100644 index 0000000000..49006e6921 --- /dev/null +++ b/math/ADD_TWO_MATRIX @@ -0,0 +1,32 @@ +//addition of matrix or subtraction of matrix +#include +int main() +{ + int a[10][10],b[10][10],x[10][10]; + int r,c; + printf("\n Enter the order of matrix a (max 10x10):"); + scanf("%d%d",&r,&c); + printf("enter the elements of matrix a: "); + for (int i=0;i +int main() +{ + int a[10][10],b[10][10],x[10][10]; + int r,c; + printf("\n Enter the order of matrix a (max 10x10):"); + scanf("%d%d",&r,&c); + printf("enter the elements of matrix a: "); + for (int i=0;i