提交 a4372c2b 编写于 作者: W wizardforcel

2020-06-29 15:30:48

上级 4d100d88
# 计算标准差的 C 程序
# C 程序:计算标准差
> 原文: [https://www.programiz.com/c-programming/examples/standard-deviation](https://www.programiz.com/c-programming/examples/standard-deviation)
......
# C 程序:查找字符串的长度
# C 程序:查找字符串的长度
> 原文: [https://www.programiz.com/c-programming/examples/string-length](https://www.programiz.com/c-programming/examples/string-length)
......
# C 程序:使用“结构”添加两个距离(以英寸-英尺系统为单位)
# C 程序:使用结构添加两个距离(以英寸-英尺系统为单位)
> 原文: [https://www.programiz.com/c-programming/examples/inch-feet-structure](https://www.programiz.com/c-programming/examples/inch-feet-structure)
......
......@@ -7,7 +7,7 @@
要理解此示例,您应该了解以下 [C 编程](/c-programming "C tutorial")主题:
* [C 结构](/c-programming/c-structures)
* [C 的结构和功能](/c-programming/c-structure-function)
* [C 结构和函数](/c-programming/c-structure-function)
* * *
......
# C 程序:计算两个时间段之间的差异
# C 程序:计算两个时间段之间的差异
> 原文: [https://www.programiz.com/c-programming/examples/time-structure](https://www.programiz.com/c-programming/examples/time-structure)
......@@ -8,7 +8,7 @@
* [C 用户定义的函数](/c-programming/c-user-defined-functions)
* [C 结构](/c-programming/c-structures)
* [C 的结构和功能](/c-programming/c-structure-function)
* [C 结构和函数](/c-programming/c-structure-function)
* [C 结构和指针](/c-programming/c-structures-pointers)
* * *
......
# C 程序:用于在结构中动态存储数据
# C 程序:在结构中动态存储数据
> 原文: [https://www.programiz.com/c-programming/examples/structure-dynamic-memory-allocation](https://www.programiz.com/c-programming/examples/structure-dynamic-memory-allocation)
......
......@@ -2,7 +2,7 @@
> 原文: [https://www.programiz.com/c-programming/examples/write-file](https://www.programiz.com/c-programming/examples/write-file)
#### 在此示例中,您将学习使用 fprintf()语句在文件中写一个句子。
#### 在此示例中,您将学习使用`fprintf()`语句在文件中写一个句子。
要理解此示例,您应该了解以下 [C 编程](/c-programming "C tutorial")主题:
......
......@@ -29,7 +29,7 @@ int main() {
* * *
### C 程序显示自己的源代码
### 显示自己的源代码的程序
```c
#include <stdio.h>
......
# C 程序:打印金字塔和图案
> 原文: [https://www.programiz.com/c-programming/examples/pyramid-pattern](https://www.programiz.com/c-programming/examples/pyramid-pattern)
#### 在此示例中,您将学习在 C 编程中打印半金字塔,倒金字塔,全金字塔,倒全金字塔,帕斯卡三角形和弗洛伊德三角形。
要理解此示例,您应该了解以下 [C 编程](/c-programming "C tutorial")主题:
* [C `if...else`语句](/c-programming/c-if-else-statement)
* [C `for`循环](/c-programming/c-for-loop)
* [C `while`和`do...while`循环](/c-programming/c-do-while-loops)
* [C `break`和`continue`](/c-programming/c-break-continue-statement)
* * *
这是您在此页面中找到的程序列表。
| C 示例 |
| --- |
| *的半金字塔 |
| 数字半金字塔 |
| 半个字母的金字塔 |
| *倒半金字塔 |
| 倒半金字塔 |
| *的完整金字塔 |
| 完整的数字金字塔 |
| *的倒金字塔 |
| 帕斯卡三角形 |
| 弗洛伊德三角形 |
* * *
### 示例 1:*的半金字塔
```c
*
* *
* * *
* * * *
* * * * *
```
**C 程序**
```c
#include <stdio.h>
int main() {
int i, j, rows;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = 1; i <= rows; ++i) {
for (j = 1; j <= i; ++j) {
printf("* ");
}
printf("\n");
}
return 0;
}
```
* * *
### 示例 2:数字的半金字塔
```c
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
```
**C Program**
```c
#include <stdio.h>
int main() {
int i, j, rows;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = 1; i <= rows; ++i) {
for (j = 1; j <= i; ++j) {
printf("%d ", j);
}
printf("\n");
}
return 0;
}
```
* * *
### 示例 3:字母的半金字塔
```c
A
B B
C C C
D D D D
E E E E E
```
**C Program**
```c
#include <stdio.h>
int main() {
int i, j;
char input, alphabet = 'A';
printf("Enter an uppercase character you want to print in the last row: ");
scanf("%c", &input);
for (i = 1; i <= (input - 'A' + 1); ++i) {
for (j = 1; j <= i; ++j) {
printf("%c ", alphabet);
}
++alphabet;
printf("\n");
}
return 0;
}
```
* * *
### 示例 4:*的倒半金字塔
```c
* * * * *
* * * *
* * *
* *
*
```
**C Program**
```c
#include <stdio.h>
int main() {
int i, j, rows;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = rows; i >= 1; --i) {
for (j = 1; j <= i; ++j) {
printf("* ");
}
printf("\n");
}
return 0;
}
```
* * *
### 示例 5:倒置的数字金字塔
```c
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
```
**C Program**
```c
#include <stdio.h>
int main() {
int i, j, rows;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = rows; i >= 1; --i) {
for (j = 1; j <= i; ++j) {
printf("%d ", j);
}
printf("\n");
}
return 0;
}
```
* * *
### 示例 6:*的完整金字塔
```c
*
* * *
* * * * *
* * * * * * *
* * * * * * * * *
```
**C Program**
```c
#include <stdio.h>
int main() {
int i, space, rows, k = 0;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = 1; i <= rows; ++i, k = 0) {
for (space = 1; space <= rows - i; ++space) {
printf(" ");
}
while (k != 2 * i - 1) {
printf("* ");
++k;
}
printf("\n");
}
return 0;
}
```
* * *
### 示例 7:完整的数字金字塔
```c
1
2 3 2
3 4 5 4 3
4 5 6 7 6 5 4
5 6 7 8 9 8 7 6 5
```
**C Program**
```c
#include <stdio.h>
int main() {
int i, space, rows, k = 0, count = 0, count1 = 0;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = 1; i <= rows; ++i) {
for (space = 1; space <= rows - i; ++space) {
printf(" ");
++count;
}
while (k != 2 * i - 1) {
if (count <= rows - 1) {
printf("%d ", i + k);
++count;
} else {
++count1;
printf("%d ", (i + k - 2 * count1));
}
++k;
}
count1 = count = k = 0;
printf("\n");
}
return 0;
}
```
* * *
### 示例 8:*的倒金字塔
```c
* * * * * * * * *
* * * * * * *
* * * * *
* * *
*
```
**C Program**
```c
#include <stdio.h>
int main() {
int rows, i, j, space;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = rows; i >= 1; --i) {
for (space = 0; space < rows - i; ++space)
printf(" ");
for (j = i; j <= 2 * i - 1; ++j)
printf("* ");
for (j = 0; j < i - 1; ++j)
printf("* ");
printf("\n");
}
return 0;
}
```
* * *
### 示例 9:帕斯卡三角形
```c
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
```
**C Program**
```c
#include <stdio.h>
int main() {
int rows, coef = 1, space, i, j;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = 0; i < rows; i++) {
for (space = 1; space <= rows - i; space++)
printf(" ");
for (j = 0; j <= i; j++) {
if (j == 0 || i == 0)
coef = 1;
else
coef = coef * (i - j + 1) / j;
printf("%4d", coef);
}
printf("\n");
}
return 0;
}
```
* * *
### 示例 10:弗洛伊德三角。
```c
1
2 3
4 5 6
7 8 9 10
```
**C Program**
```c
#include <stdio.h>
int main() {
int rows, i, j, number = 1;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = 1; i <= rows; i++) {
for (j = 1; j <= i; ++j) {
printf("%d ", number);
++number;
}
printf("\n");
}
return 0;
}
```
\ No newline at end of file
# C 编程数组
\ No newline at end of file
# C 数组
\ No newline at end of file
# C 编程字符串
\ No newline at end of file
# C 字符串
\ No newline at end of file
# C 结构与功能
# C 结构与函数
> 原文: [https://www.programiz.com/c-programming/c-structure-function](https://www.programiz.com/c-programming/c-structure-function)
......
......@@ -10,7 +10,7 @@
1. [C 结构](/c-programming/c-structures "C Programming Structures")
2. [C 结构和指针](/c-programming/c-structures-pointers)
3. [C 的结构和功能](/c-programming/c-structure-function)
3. [C 结构和函数](/c-programming/c-structure-function)
* * *
......
# C 语言文件
\ No newline at end of file
# C 文件
\ No newline at end of file
# C 标准库功能
# C 标准库函数
> 原文: [https://www.programiz.com/c-programming/library-function](https://www.programiz.com/c-programming/library-function)
......
# C HelloWorld 程序
# C 程序:HelloWorld
> 原文: [https://www.programiz.com/c-programming/examples/print-sentence](https://www.programiz.com/c-programming/examples/print-sentence)
......
# C 程序:查找字符的 ASCII 值
# C 程序:查找字符的 ASCII 值
> 原文: [https://www.programiz.com/c-programming/examples/ASCII-value-character](https://www.programiz.com/c-programming/examples/ASCII-value-character)
......
# C 程序:商和余数
# C 程序:商和余数
> 原文: [https://www.programiz.com/c-programming/examples/remainder-quotient](https://www.programiz.com/c-programming/examples/remainder-quotient)
......
# C 程序:查找二次方程的根
# C 程序:查找二次方程的根
> 原文: [https://www.programiz.com/c-programming/examples/quadratic-roots](https://www.programiz.com/c-programming/examples/quadratic-roots)
......
# 查找两个数字的 LCM 的 C 程序
# C 程序:查找两个数字的 LCM
> 原文: [https://www.programiz.com/c-programming/examples/lcm](https://www.programiz.com/c-programming/examples/lcm)
......
# C 简介实
# C 简单示
> 原文: [https://www.programiz.com/c-programming/c-introduction-examples](https://www.programiz.com/c-programming/c-introduction-examples)
......
# C 程序:用于计算整数中的位数
# C 程序:计算整数中的位数
> 原文: [https://www.programiz.com/c-programming/examples/digits-count](https://www.programiz.com/c-programming/examples/digits-count)
......
# C 程序:计算数字的幂
# C 程序:计算数字的幂
> 原文: [https://www.programiz.com/c-programming/examples/power-number](https://www.programiz.com/c-programming/examples/power-number)
......
# C 程序:检查数字是否为回文
> 原文: [https://www.programiz.com/c-programming/examples/palindrome-number](https://www.programiz.com/c-programming/examples/palindrome-number)
#### 在此示例中,您将学习检查用户输入的数字是否是回文。
要理解此示例,您应该了解以下 [C 编程](/c-programming "C tutorial")主题:
* [C 编程运算符](/c-programming/c-operators)
* [C `if...else`语句](/c-programming/c-if-else-statement)
* [C `while`和`do...while`循环](/c-programming/c-do-while-loops)
* * *
如果该数字的倒数等于原始数字,则整数是回文。
* * *
## 检查回文计划
```c
#include <stdio.h>
int main() {
int n, reversedN = 0, remainder, originalN;
printf("Enter an integer: ");
scanf("%d", &n);
originalN = n;
// reversed integer is stored in reversedN
while (n != 0) {
remainder = n % 10;
reversedN = reversedN * 10 + remainder;
n /= 10;
}
// palindrome if orignalN and reversedN are equal
if (originalN == reversedN)
printf("%d is a palindrome.", originalN);
else
printf("%d is not a palindrome.", originalN);
return 0;
}
```
**输出**
```c
Enter an integer: 1001
1001 is a palindrome.
```
* * *
在此,要求用户输入一个整数。 该数字存储在变量`n`中。
然后,我们将此数字分配给另一个变量`orignalN`。 然后,找到 n 的反向并将其存储在`reversedN`中。
如果`orignalN`等于`reversedN`,则用户输入的数字是回文,
\ No newline at end of file
# C 程序:检查数字是否为质数
> 原文: [https://www.programiz.com/c-programming/examples/prime-number](https://www.programiz.com/c-programming/examples/prime-number)
#### 在此示例中,您将学习检查用户输入的整数是否是质数。
要理解此示例,您应该了解以下 [C 编程](/c-programming "C tutorial")主题:
* [C `if...else`语句](/c-programming/c-if-else-statement)
* [C `for`循环](/c-programming/c-for-loop)
* [C `break`和`continue`](/c-programming/c-break-continue-statement)
* * *
质数是一个只能被`1`及其本身整除的正整数。 例如:2、3、5、7、11、13、17
* * *
## 程序检查质数
```c
#include <stdio.h>
int main() {
int n, i, flag = 0;
printf("Enter a positive integer: ");
scanf("%d", &n);
for (i = 2; i <= n / 2; ++i) {
// condition for non-prime
if (n % i == 0) {
flag = 1;
break;
}
}
if (n == 1) {
printf("1 is neither prime nor composite.");
}
else {
if (flag == 0)
printf("%d is a prime number.", n);
else
printf("%d is not a prime number.", n);
}
return 0;
}
```
**输出**
```c
Enter a positive integer: 29
29 is a prime number.
```
* * *
在程序中,从`i = 2`循环到`i < n/2`进行`for`循环。
在每次迭代中,使用以下命令检查`n`是否可被`i`完全整除。
```c
if (n % i == 0) {
}
```
如果 n 被`i`完全整除,则`n`不是质数。 在这种情况下,`flag`设置为 1,并使用`break`语句终止循环。
循环后,如果`n`为质数,则`flag`仍为 0。但是,如果`n`为非质数,则`flag`将为 1。
访问此页面以了解如何[打印两个间隔](https://www.programiz.com/c-programming/examples/prime-number-intervals)之间的所有质数。
\ No newline at end of file
# C 程序:显示两个时间间隔之间的质数
# C 程序:显示两个间隔之间的质数
> 原文: [https://www.programiz.com/c-programming/examples/prime-number-intervals](https://www.programiz.com/c-programming/examples/prime-number-intervals)
......
# C 程序:打印金字塔和图案
> 原文: [https://www.programiz.com/article/c-programming-pattern](https://www.programiz.com/article/c-programming-pattern)
#### 在此示例中,您将学习在 C 编程中打印半金字塔,倒金字塔,全金字塔,倒全金字塔,帕斯卡三角形和弗洛伊德三角形。
要理解此示例,您应该了解以下 [C 编程](/c-programming "C tutorial")主题:
* [C `if...else`语句](/c-programming/c-if-else-statement)
* [C `for`循环](/c-programming/c-for-loop)
* [C `while`和`do...while`循环](/c-programming/c-do-while-loops)
* [C `break`和`continue`](/c-programming/c-break-continue-statement)
* * *
这是您在此页面中找到的程序列表。
| C 示例 |
| --- |
| *的半金字塔 |
| 数字半金字塔 |
| 半个字母的金字塔 |
| *倒半金字塔 |
| 倒半金字塔 |
| *的完整金字塔 |
| 完整的数字金字塔 |
| *的倒金字塔 |
| 帕斯卡三角形 |
| 弗洛伊德三角形 |
* * *
### 示例 1:`*`的半金字塔
```c
*
* *
* * *
* * * *
* * * * *
```
**C 程序**
```c
#include <stdio.h>
int main() {
int i, j, rows;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = 1; i <= rows; ++i) {
for (j = 1; j <= i; ++j) {
printf("* ");
}
printf("\n");
}
return 0;
}
```
* * *
### 示例 2:数字的半金字塔
```c
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
```
**C Program**
```c
#include <stdio.h>
int main() {
int i, j, rows;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = 1; i <= rows; ++i) {
for (j = 1; j <= i; ++j) {
printf("%d ", j);
}
printf("\n");
}
return 0;
}
```
* * *
### 示例 3:字母的半金字塔
```c
A
B B
C C C
D D D D
E E E E E
```
**C Program**
```c
#include <stdio.h>
int main() {
int i, j;
char input, alphabet = 'A';
printf("Enter an uppercase character you want to print in the last row: ");
scanf("%c", &input);
for (i = 1; i <= (input - 'A' + 1); ++i) {
for (j = 1; j <= i; ++j) {
printf("%c ", alphabet);
}
++alphabet;
printf("\n");
}
return 0;
}
```
* * *
### 示例 4:`*`的倒半金字塔
```c
* * * * *
* * * *
* * *
* *
*
```
**C Program**
```c
#include <stdio.h>
int main() {
int i, j, rows;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = rows; i >= 1; --i) {
for (j = 1; j <= i; ++j) {
printf("* ");
}
printf("\n");
}
return 0;
}
```
* * *
### 示例 5:倒置的数字金字塔
```c
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
```
**C Program**
```c
#include <stdio.h>
int main() {
int i, j, rows;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = rows; i >= 1; --i) {
for (j = 1; j <= i; ++j) {
printf("%d ", j);
}
printf("\n");
}
return 0;
}
```
* * *
### 示例 6:`*`的完整金字塔
```c
*
* * *
* * * * *
* * * * * * *
* * * * * * * * *
```
**C Program**
```c
#include <stdio.h>
int main() {
int i, space, rows, k = 0;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = 1; i <= rows; ++i, k = 0) {
for (space = 1; space <= rows - i; ++space) {
printf(" ");
}
while (k != 2 * i - 1) {
printf("* ");
++k;
}
printf("\n");
}
return 0;
}
```
* * *
### 示例 7:完整的数字金字塔
```c
1
2 3 2
3 4 5 4 3
4 5 6 7 6 5 4
5 6 7 8 9 8 7 6 5
```
**C Program**
```c
#include <stdio.h>
int main() {
int i, space, rows, k = 0, count = 0, count1 = 0;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = 1; i <= rows; ++i) {
for (space = 1; space <= rows - i; ++space) {
printf(" ");
++count;
}
while (k != 2 * i - 1) {
if (count <= rows - 1) {
printf("%d ", i + k);
++count;
} else {
++count1;
printf("%d ", (i + k - 2 * count1));
}
++k;
}
count1 = count = k = 0;
printf("\n");
}
return 0;
}
```
* * *
### 示例 8:`*`的倒金字塔
```c
* * * * * * * * *
* * * * * * *
* * * * *
* * *
*
```
**C Program**
```c
#include <stdio.h>
int main() {
int rows, i, j, space;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = rows; i >= 1; --i) {
for (space = 0; space < rows - i; ++space)
printf(" ");
for (j = i; j <= 2 * i - 1; ++j)
printf("* ");
for (j = 0; j < i - 1; ++j)
printf("* ");
printf("\n");
}
return 0;
}
```
* * *
### 示例 9:帕斯卡三角
```c
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
```
**C Program**
```c
#include <stdio.h>
int main() {
int rows, coef = 1, space, i, j;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = 0; i < rows; i++) {
for (space = 1; space <= rows - i; space++)
printf(" ");
for (j = 0; j <= i; j++) {
if (j == 0 || i == 0)
coef = 1;
else
coef = coef * (i - j + 1) / j;
printf("%4d", coef);
}
printf("\n");
}
return 0;
}
```
* * *
### 示例 10:弗洛伊德三角
```c
1
2 3
4 5 6
7 8 9 10
```
**C Program**
```c
#include <stdio.h>
int main() {
int rows, i, j, number = 1;
printf("Enter the number of rows: ");
scanf("%d", &rows);
for (i = 1; i <= rows; i++) {
for (j = 1; j <= i; ++j) {
printf("%d ", number);
++number;
}
printf("\n");
}
return 0;
}
```
\ No newline at end of file
# C 程序:用于检查一个数字是否可以表示为两个质数之和
# C 程序:检查一个数字是否可以表示为两个质数之和
> 原文: [https://www.programiz.com/c-programming/examples/sum-prime-numbers](https://www.programiz.com/c-programming/examples/sum-prime-numbers)
......
+ [C 简介](2.md)
+ [C 关键字和标识符](3.md)
+ [C 变量,常量和字面值](4.md)
+ [C 数据类型](5.md)
+ [C 输入输出(I/O)](6.md)
+ [C 编程运算符](7.md)
+ [C 简单示例](8.md)
+ [C 流程控制](9.md)
+ [C `if...else`语句](10.md)
+ [C `for`循环](11.md)
+ [C `while`和`do...while`循环](12.md)
+ [C `break`和`continue`](13.md)
+ [C `switch`语句](14.md)
+ [C `goto`声明](15.md)
+ [C 控制流程示例](16.md)
+ [C 函数](17.md)
+ [C 函数](18.md)
+ [C 用户定义的函数](19.md)
+ [C 编程中用户定义函数的类型](20.md)
+ [C 递归](21.md)
+ [C 存储类](22.md)
+ [C 函数示例](23.md)
+ [C 数组](24.md)
+ [C 数组](25.md)
+ [C 多维数组](26.md)
+ [将数组传递给 C 中的函数](27.md)
+ [C 编程指针](28.md)
+ [C 指针](29.md)
+ [数组和指针之间的关系](30.md)
+ [C 按引用调用:使用指针](31.md)
+ [C 动态内存分配](32.md)
+ [C 数组和指针示例](33.md)
+ [C 字符串](34.md)
+ [C 编程字符串](35.md)
+ [使用库函数进行 C 编程中的字符串操作](36.md)
+ [C 编程中的字符串示例](37.md)
+ [结构与联合](38.md)
+ [结构](39.md)
+ [结构和指针](40.md)
+ [C 结构与函数](41.md)
+ [C 联合](42.md)
+ [C 结构示例](43.md)
+ [C 文件](44.md)
+ [C 文件处理](45.md)
+ [C 文件示例](46.md)
+ [其他主题](47.md)
+ [枚举](48.md)
+ [C 预处理器和宏](49.md)
+ [C 标准库函数](50.md)
+ [C 示例](52.md)
+ [C 程序:打印金字塔和图案](53.md)
+ [C 程序:检查数字是否为质数](54.md)
+ [C 程序:检查数字是否为回文](55.md)
+ [C 程序:HelloWorld](56.md)
+ [C 程序:打印整数(由用户输入)](58.md)
+ [C 程序:添加两个整数](59.md)
+ [C 程序:将两个浮点数相乘](60.md)
+ [C 程序:查找字符的 ASCII 值](61.md)
+ [C 程序:商和余数](62.md)
+ [C 程序:查找`int`,`float`,`double`和`char`的大小](63.md)
+ [C 程序:`long`关键字演示](64.md)
+ [C 程序:交换两个数字](65.md)
+ [C 程序:检查数字是偶数还是奇数](66.md)
+ [C 程序:检查字符是元音还是辅音](67.md)
+ [C 程序:查找三个数字中最大的数字](68.md)
+ [C 程序:查找二次方程的根](69.md)
+ [C 程序:检查闰年](70.md)
+ [C 程序:检查数字是正数还是负数](71.md)
+ [C 程序:检查字符是否为字母](72.md)
+ [C 程序:计算自然数之和](73.md)
+ [C 程序:查找数字阶乘](74.md)
+ [C 程序:生成乘法表](75.md)
+ [C 程序:显示斐波那契数列](76.md)
+ [C 程序:查找两个数字的 GCD](77.md)
+ [C 程序:查找两个数字的 LCM](78.md)
+ [C 程序:使用循环从 A 到 Z 显示字符](79.md)
+ [C 程序:计算整数中的位数](80.md)
+ [C 程序:反转数字](81.md)
+ [C 程序:计算数字的幂](82.md)
+ [C 程序:显示两个间隔之间的质数](85.md)
+ [C 程序:检查阿姆斯特朗数](86.md)
+ [C 程序:在两个间隔之间显示阿姆斯特朗数](87.md)
+ [C 程序:显示数字因数](88.md)
+ [C 程序:使用`switch...case`制作一个简单的计算器](90.md)
+ [C 程序:使用函数显示区间内的质数](91.md)
+ [C 程序:使用用户定义的函数检查质数或阿姆斯特朗数](92.md)
+ [C 程序:检查一个数字是否可以表示为两个质数之和](93.md)
+ [C 程序:使用递归查找自然数之和](94.md)
+ [C 程序:使用递归查找数字的阶乘](95.md)
+ [C 程序:使用递归查找 GCD](96.md)
+ [C 程序:将二进制数转换为十进制,反之亦然](97.md)
+ [C 程序:将八进制数转换为十进制,反之亦然](98.md)
+ [C 程序:将二进制数转换为八进制,反之亦然](99.md)
+ [C 程序:使用递归来反转句子](100.md)
+ [C 程序:使用递归计算幂](101.md)
+ [C 程序:使用数组计算平均值](102.md)
+ [C 程序:查找数组中的最大元素](103.md)
+ [C 程序:计算标准差](104.md)
+ [C 程序:使用多维数组相加两个矩阵](105.md)
+ [C 程序:使用多维数组将两个矩阵相乘](106.md)
+ [C 程序:查找矩阵的转置](107.md)
+ [C 程序:通过将矩阵传递给函数来将两个矩阵相乘](108.md)
+ [C 程序:使用指针访问数组元素](109.md)
+ [C 程序:使用按引用调用以循环顺序交换数字](110.md)
+ [C 程序:使用动态内存分配查找最大数字](111.md)
+ [C 程序:查找字符串中字符的频率](112.md)
+ [C 程序:计算元音,辅音等的数量](113.md)
+ [C 程序:删除字符串中除字母之外的所有字符](114.md)
+ [C 程序:查找字符串的长度](115.md)
+ [C 程序:连接两个字符串](116.md)
+ [C 程序:不使用`strcpy()`复制字符串](117.md)
+ [C 程序:按字典顺序(字典顺序)对元素进行排序](118.md)
+ [C 程序:使用程序存储学生信息](119.md)
+ [C 程序:使用结构添加两个距离(以英寸-英尺系统为单位)](120.md)
+ [C 程序:通过将结构传递给函数来添加两个复数](121.md)
+ [C 程序:计算两个时间段之间的差异](122.md)
+ [C 程序:使用结构存储学生信息](123.md)
+ [C 程序:在结构中动态存储数据](124.md)
+ [C 程序:将句子写入文件](125.md)
+ [C 程序:从文件中读取一行并显示它](126.md)
+ [C 程序:显示自己的源代码作为输出](127.md)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册