当前位置:网站首页>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;
}
边栏推荐
- selenium自动化集成,八年测试经验软测工程师,一篇文章带你学懂
- 数字三角形模型 AcWing 1027. 方格取数
- Explain Huawei's application market in detail, and gradually reduce 32-bit package applications and strategies in 2022
- JS的操作
- Gson converts the entity class to JSON times declare multiple JSON fields named
- 指针进阶,字符串函数
- Tronapi wave field interface - source code without encryption - can be opened twice - interface document attached - package based on thinkphp5 - detailed guidance of the author - July 6, 2022 - Novice
- leetcode135. Distribute candy
- Three series of BOM elements
- 求有符号数的原码、反码和补码【C语言】
猜你喜欢
![[Yu Yue education] higher vocational English reference materials of Nanjing Polytechnic University](/img/e2/519a5267cd5425a83434d2da65ebe6.jpg)
[Yu Yue education] higher vocational English reference materials of Nanjing Polytechnic University
![[Yugong series] February 2022 U3D full stack class 006 unity toolbar](/img/2e/3a7d71a0b5a6aff294a0bd2f8515f8.jpg)
[Yugong series] February 2022 U3D full stack class 006 unity toolbar

Greenplum6.x重新初始化
![Other 7 features of TCP [sliding window mechanism ▲]](/img/ff/c3f52a7b89804acfd0c4f3b78bc4a0.jpg)
Other 7 features of TCP [sliding window mechanism ▲]

JS operation

阿里p8推荐,测试覆盖率工具—Jacoco,实用性极佳

Greenplum 6.x common statements

Introduction to data fragmentation

Componentspace2022, assertions, protocols, bindings, and configuration files

Greenplum 6.x version change record common manual
随机推荐
更改当前文件夹及文件夹下文件日期shell脚本
mysql分区讲解及操作语句
最长上升子序列模型 AcWing 1017. 怪盗基德的滑翔翼
数据分析方法论与前人经验总结2【笔记干货】
如何在HarmonyOS应用中集成App Linking服务
Greenplum6.x监控软件搭建
阿里p8推荐,测试覆盖率工具—Jacoco,实用性极佳
年薪50w阿裏P8親自下場,教你如何從測試進階
ESP32-ULP协处理器低功耗模式RTC GPIO中断唤醒
ncs成都新電面試經驗
Problems encountered in the use of go micro
[kuangbin] topic 15 digit DP
Gson converts the entity class to JSON times declare multiple JSON fields named
Interpolation lookup (two methods)
Golan idea IntelliJ cannot input Chinese characters
Greenplum 6.x version change record common manual
数字三角形模型 AcWing 1027. 方格取数
Greenplum6.x搭建_环境配置
模拟卷Leetcode【普通】1706. 球会落何处
NCS Chengdu Xindian interview experience