i am having a doubt , how to make make matrix in addition but my output should be in this way
1 1 1 1 1 1 2 2 2
1 1 1 + 1 1 1 = 2 2 2
1 1 1 1 1 1 2 2 2
i am able to make single matrix but to make in this way is difficult.
1
Expert's answer
2012-09-25T11:30:11-0400
#include <conio.h>
int main() { int a[3][3]; int b[3][3]; int c[3][3]; for(int i=0;i<3;i++){ for(int j=0;j<3;j++){ a[i][j]=1; b[i][j]=1; } }
Comments
Leave a comment