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

STUCK with your assignment? When is it due? Hire our professional essay experts who are available online 24/7 for an essay paper written to a high standard at a reasonable price.


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);

} . . .

Writerbay.net

Everyone needs a little help with academic work from time to time. Hire the best essay writing professionals working for us today!

Get a 15% discount for your first order


Order a Similar Paper Order a Different Paper