Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

multiplicação de matrizes usando função double(como faço usando a função double)

0 votes
asked May 2, 2021 by paulo magalhaes (1,480 points)
Crie um programa que multiplica duas matrizes quadradas do tipo double lidas do teclado. Seu programa deve ler a dimensão n da matriz, em seguida alocar dinamicamente duas matrizes n × n. Depois ler os dados das duas matrizes e imprimir a matriz resultante da multiplicação destas.

#include<stdio.h>

#include<stdlib.h>

int main ()

{

  int matriz[3][3],i, j;

  printf ("\nDigite valor para os elementos da matriz\n\n");

  for ( i=0; i<3; i++ )

    for ( j=0; j<3; j++ )

    {

      printf ("\nElemento[%d][%d] = ", i, j);

      scanf ("%d", &matriz[ i ][ j ]);

    }

  printf("\n\n******************* Saida de Dados ********************* \n\n");

  for ( i=0; i<3; i++ )

    for ( j=0; j<3; j++ )

    {

      printf ("\nElemento[%d][%d] = %d\n", i, j,matriz[ i ][ j ]);

    }

  getch();

  return(0);

}

1 Answer

0 votes
answered May 5, 2021 by Peter Minarik (86,040 points)

Please, learn how to multiply matrices.

The rest has already been provided to you in previous questions.

Good luck!

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...