当前位置:网站首页>C language for calculating the product of two matrices
C language for calculating the product of two matrices
2022-07-07 08:52:00 【Please Sit Down】
int main(){
int a[3][2]={2,-1,-4,0,3,1},b[2][2]={7,-9,-8,10};
int i,j,k,s,c[3][2];
for(i=0;i<3;i++){
for(j=0;j<2;j++){
for(k=s=0;k<2;k++) s+=a[i][k]*b[k][j];
c[i][j]=s;
}
}
for(i=0;i<3;i++){
for(j=0;j<2;j++) printf("%5d",c[i][j]);
printf("\n");
}
return 0;
}
边栏推荐
- Greenplum6.x-版本变化记录-常用手册
- Un salaire annuel de 50 W Ali P8 vous montrera comment passer du test
- 登山小分队(dfs)
- ncs成都新电面试经验
- 南京商品房买卖启用电子合同,君子签助力房屋交易在线网签备案
- PPT模板、素材下载网站(纯干货,建议收藏)
- leetcode134. gas station
- cmake命令行使用
- Nanjing commercial housing sales enabled electronic contracts, and Junzi sign assisted in the online signing and filing of housing transactions
- 说一个软件创业项目,有谁愿意投资的吗?
猜你喜欢
調用華為遊戲多媒體服務的創建引擎接口返回錯誤碼1002,錯誤信息:the params is error
[Nanjing University] - [software analysis] course learning notes (I) -introduction
Oracle makes it clear at one time that a field with multiple separators will be split into multiple rows, and then multiple rows and columns. Multiple separators will be split into multiple rows, and
数字三角形模型 AcWing 1027. 方格取数
【踩坑】nacos注册一直连接localhost:8848,no available server
Introduction to data fragmentation
let const
Recommended by Alibaba P8, the test coverage tool - Jacobo is very practical
idea里使用module项目的一个bug
路由信息协议——RIP
随机推荐
Tronapi-波场接口-源码无加密-可二开--附接口文档-基于ThinkPHP5封装-作者详细指导-2022年7月6日-新手快速上手-可无缝升级tp6版本
Greenplum6.x搭建_环境配置
Required String parameter ‘XXX‘ is not present
[Yugong series] February 2022 U3D full stack class 005 unity engine view
PPT模板、素材下载网站(纯干货,建议收藏)
Download and install orcale database11.2.0.4
Alibaba P8 teaches you how to realize multithreading in automated testing? Hurry up and stop
关于基于kangle和EP面板使用CDN
Markdown editor Use of MD plug-in
Selenium automation integration, eight years of testing experience, soft test engineer, an article to teach you
数字三角形模型 AcWing 275. 传纸条
A bug using module project in idea
Analysis of abnormal channel number information before and after AGC re signature service
About using CDN based on Kangle and EP panel
You should use Google related products with caution
leetcode135. Distribute candy
Mock.js用法详解
opencv之图像分割
求有符号数的原码、反码和补码【C语言】
All about PDF crack, a complete solution to meet all your PDF needs