Skip to content
Snippets Groups Projects
Commit bcd94399 authored by Jakub Walas's avatar Jakub Walas
Browse files

Upload New File

parent e17c2db1
Branches
No related merge requests found
#include <stdio.h>
int main(){
float A[2][2],B[2][2],C[2][2];
int i,j,k;
for (i=0;i<=1;i++){
for (j=0;j<=1;j++){
printf("Podaj skladnik w macierzy A wiersz %i kolumna %i\n",i+1,j+1);
scanf("%f",&A[i][j]);
}
}
for (i=0;i<=1;i++){
for (j=0;j<=1;j++){
printf("Podaj skladnik w macierzy B wiersz %i kolumna %i\n",i+1,j+1);
scanf("%f",&B[i][j]);
}
}
for (i=0;i<=1;i++){
for (j=0;j<=1;j++){
for (k=0;k<=1;k++){
C[i][j]+=A[i][k]*B[k][j];
}
printf("%.1f ",C[i][j]);
}
printf("\n");
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment