当前位置:网站首页>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;
}
边栏推荐
- Analysis of using jsonp cross domain vulnerability and XSS vulnerability in honeypot
- LeetCode 736. LISP syntax parsing
- 为不同类型设备构建应用的三大更新 | 2022 I/O 重点回顾
- cmake命令行使用
- Esp32-ulp coprocessor low power mode RTC GPIO interrupt wake up
- 关于基于kangle和EP面板使用CDN
- redis故障处理 “Can‘t save in background: fork: Cannot allocate memory“
- Sign and authenticate API interface or H5 interface
- [Chongqing Guangdong education] organic electronics (Bilingual) reference materials of Nanjing University of Posts and Telecommunications
- A bug using module project in idea
猜你喜欢

JS operation

ncs成都新電面試經驗

A bug using module project in idea

Greenplum 6.x build_ install

How to integrate app linking services in harmonyos applications

登山小分队(dfs)

LeetCode 715. Range 模块

南京商品房买卖启用电子合同,君子签助力房屋交易在线网签备案
![[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

let const
随机推荐
Skills that testers must know: Selenium's three waiting ways are interpreted clearly
模拟卷Leetcode【普通】1706. 球会落何处
RuntimeError: Calculated padded input size per channel: (1 x 1). Kernel size: (5 x 5). Kernel size c
9c09730c0eea36d495c3ff6efe3708d8
FPGA knowledge accumulation [6]
【踩坑】nacos注册一直连接localhost:8848,no available server
Arm GIC (IV) GIC V3 register class analysis notes.
Componentspace2022, assertions, protocols, bindings, and configuration files
Problems encountered in the use of go micro
Test pits - what test points should be paid attention to when adding fields to existing interfaces (or database tables)?
Gson转换实体类为json时报declares multiple JSON fields named
Mountaineering team (DFS)
JS operation
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
All about PDF crack, a complete solution to meet all your PDF needs
[Yugong series] February 2022 U3D full stack class 007 - production and setting skybox resources
Teach you how to select PCB board by hand (II)
Tronapi-波场接口-源码无加密-可二开--附接口文档-基于ThinkPHP5封装-作者详细指导-2022年7月6日-新手快速上手-可无缝升级tp6版本
阿里p8手把手教你,自动化测试应该如何实现多线程?赶紧码住
Analysis of abnormal channel number information before and after AGC re signature service