how can i make a C program sourceusing struct and how can i reform the source that can calculate the

Do you need academic writing help with your homework? Let us write your papers.


Order a Similar Paper Order a Different Paper

how can i make a C program sourceusing struct and how can i reform the source that can calculate thecomplex number (a+jb) ? #include int main()

{

int matrix1[100][100]= {0}, matrix2[100][100] = {0};

int size, a, b, sum1 =0, sum2 = 0; printf(“================================n”);

printf(“matrixcalculation programn”);

printf(“================================n”); printf(“input the matrix size(N×N)n”);

scanf(“%d”,&size); printf(“n input the firstmatrix’s componentsn”);

for(a=0; a{

  for (b=0;b  {

   printf(“nu[%d][%d]”,a, b);

   scanf(“%d”,&matrix1[a][b]);

  }

} printf(“n input the secondmatrix’s components n”);

for(a=0; a{

  for (b=0;b  {

   printf(“nu[%d][%d]”,a, b);

   scanf(“%d”,&matrix2[a][b]);

  }

} printf(“n result of two matrix’sSumnn”);

for(a=0;a{

  for(b=0;b  {

   printf(“%3d”,matrix1[a][b]+matrix2[a][b]);    sum1 +=matrix1[a][b]+matrix2[a][b];

  }

  printf(“%3dnn”, sum1);

} printf(“n result of two matrix’ssubtraction nn”);

for(a=0;a{

  for(b=0;b  {

   printf(“%3d”,matrix1[a][b]-matrix2[a][b]);    sum2 +=matrix1[a][b]-matrix2[a][b];

  }

  printf(“%3dnn”, sum2);

} . . .

Our team of vetted writers in every subject is waiting to help you pass that class. With keen editors and a friendly customer support team, we guarantee custom-written, original, high-quality papers. Get top grades.


Order a Similar Paper Order a Different Paper