摘要:
问题描述: 编写一个函数digit(n,k),它回送n的从右边开始的第k个数字的值,例如digit(25469,3)=4, digit(724,4)=0 代码展示: 1 #include<stdio.h> 2 int digit(int num, int x); //num表示待查找的数,x表示从右 阅读全文
posted @ 2021-11-27 21:28
空梦。
阅读(301)
评论(0)
推荐(0)
摘要:
问题描述: 用递归法求n! 代码展示: 1 #include<stdio.h> 2 int diGui(int n); 3 int main(){ 4 int n; 5 int result; 6 printf("请输入n:"); 7 scanf("%d", &n); 8 result = diGu 阅读全文
posted @ 2021-11-27 21:07
空梦。
阅读(64)
评论(0)
推荐(0)
摘要:
问题描述: 输入5名大学生成绩4门功课的成绩,然后求出: (1)每个大学生的总分; (2)每门课程的平均分; (3)输出总分最高的学生的姓名和总分数; 代码展示: 1 #include<stdio.h> 2 #include<string.h> 3 struct Student{ 4 char na 阅读全文
posted @ 2021-11-27 21:01
空梦。
阅读(97)
评论(0)
推荐(0)

浙公网安备 33010602011771号