当前位置:网站首页>99 multiplication table (C language)
99 multiplication table (C language)
2022-07-05 08:16:00 【chen_ bx】
c Language implementation of 99 multiplication table
The code is as follows :
#include "stdio.h"
int main()
{
int i, j;
int n = 9;
for (i = 1; i <= n; i++) {
for (j = 1; j <= i; j++) {
printf("%d*%d=%d", j, i, i*j);
if (i*j < 10) {
printf(" ");
}
else {
printf(" ");
}
}
printf("\n");
}
return 0;
}
Running results :
边栏推荐
- Development tools -- gcc compiler usage
- Network port usage
- Naming rules for FreeRTOS
- Sql Server的存儲過程詳解
- Matlab2018b problem solving when installing embedded coder support package for stmicroelectronic
- What are the test items of power battery ul2580
- MHA High available Cluster for MySQL
- Halcon's practice based on shape template matching [1]
- Why is 1900 not a leap year
- Explain task scheduling based on Cortex-M3 in detail (Part 1)
猜你喜欢
Classic application of MOS transistor circuit design (1) -iic bidirectional level shift
[trio basic tutorial 18 from introduction to proficiency] trio motion controller UDP fast exchange data communication
Improve lighting C program
Take you to understand the working principle of lithium battery protection board
Management and use of DokuWiki (supplementary)
C WinForm [help interface - send email] - practice five
Halcon's practice based on shape template matching [2]
[trio basic tutorial 16 from introduction to proficiency] UDP communication test supplement
After installing the new version of keil5 or upgrading the JLINK firmware, you will always be prompted about the firmware update
Why is 1900 not a leap year
随机推荐
Verilog -- state machine coding method
How to select conductive slip ring
Communication standard -- communication protocol
[cloud native | learn kubernetes from scratch] III. kubernetes cluster management tool kubectl
Explication de la procédure stockée pour SQL Server
Connection mode - bridge and net
Explain task scheduling based on Cortex-M3 in detail (Part 2)
Semiconductor devices (I) PN junction
C WinForm [view status bar -- statusstrip] - Practice 2
Define in and define out
Talk about the circuit use of TVs tube
1-stm32 operation environment construction
C WinForm [exit application] - practice 3
Carrier period, electrical speed, carrier period variation
General makefile (I) single C language compilation template
Embedded composition and route
Class of color image processing based on Halcon learning_ ndim_ norm. hdev
MySQL MHA high availability cluster
Reasons for rapid wear of conductive slip rings
[trio basic tutorial 18 from introduction to proficiency] trio motion controller UDP fast exchange data communication