用c语言代码写九九乘法表
时间: 2023-05-20 13:04:58 浏览: 115
使用C语言 编写的 九九乘法表
Sure, here's a C program to print the multiplication table of 1 to 9:
```
#include <stdio.h>
int main() {
int i, j;
for (i = 1; i <= 9; i++) {
for (j = 1; j <= i; j++) {
printf("%d*%d=%d\t", j, i, i*j);
}
printf("\n");
}
return 0;
}
```
This program uses nested loops to print the multiplication table. The outer loop iterates from 1 to 9, and the inner loop iterates from 1 to the current value of the outer loop variable. Inside the inner loop, we print the product of the two loop variables, along with some formatting characters to make the output look nice.
阅读全文