自定义函数处理素数(c语言||简单做法) 摘要:解题思路:根据题目,在自定义函数中判断是否是素数,在主函数中输入n并且输出该数。是否是素数,首先判断n是否小于1,小于1不是素数,当n 大于1时,是否可以整除2~n-1,再加以判断即可注意事项:参考代…… 题解列表 2021年08月07日 0 点赞 0 评论 773 浏览 评分:7.0
C语言排序问题 摘要:解题思路:xxxxxxx注意事项:xxxxxxxxx参考代码:#include<stdio.h>void main(){ int a[10],i,j,temp; for(i=0;i<10;i++) {…… 题解列表 2021年08月07日 0 点赞 0 评论 410 浏览 评分:0.0
[编程入门]密码破译 摘要:解题思路:注意事项:参考代码:#include"stdio.h"int main(){ char c1,c2,c3,c4,c5; c1='C'; c2='h'; c3=…… 题解列表 2021年08月04日 0 点赞 0 评论 381 浏览 评分:0.0
字符转换为数字入门必看 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main () { char a[11]; int i,sum =0,av…… 题解列表 2021年08月04日 0 点赞 6 评论 540 浏览 评分:6.0
计算两点间的距离简单明了 摘要:解题思路:利用两点间的距离公式求解。注意事项:无参考代码:#include<stdio.h>#include<math.h>int main(){ int x1,y1,x2,y2; int t1,t2…… 题解列表 2021年08月04日 0 点赞 0 评论 540 浏览 评分:9.9
题解 1224: 整除的尾数 摘要:参考代码:#include<stdio.h>#include<string.h>int main(){ int x,y; while(scanf("%d%d",&x,&y)!=EOF){ …… 题解列表 2021年08月04日 0 点赞 0 评论 294 浏览 评分:0.0
[编程入门]自定义函数之字符提取-题解(C语言代码)(简便) 摘要:解题思路:定义三字符数组,在第一个输入的数组中判断字符串中是否有第三组的元音字母,如果有则输入第二个数组。最后调用输出即可。注意事项:遇'\0'结束,strlen()长度从1开始的参考…… 题解列表 2021年08月03日 0 点赞 0 评论 497 浏览 评分:0.0
编写题解 1955: 贷款计算(c语言代码) 摘要:```c #include int main() { double a,b,c; int s; scanf("%lf%lf%lf",&a,&b,&c); s=a*10000/c+a*10…… 题解列表 2021年08月03日 0 点赞 0 评论 437 浏览 评分:0.0
编写题解 1954: 话费计算 摘要:#```c #include int main() { float x; scanf("%f",&x); printf("%.1f",50+x*0.4); …… 题解列表 2021年08月03日 0 点赞 0 评论 357 浏览 评分:0.0
水仙花数判断 摘要:解题思路: 1.求水仙花数的关键是对个位上的数、十位上的数和百位上的数的寻找 1.1求个位上的数可以直接该数字对10取余。即为个位上的数 题解列表 2021年08月03日 0 点赞 0 评论 476 浏览 评分:8.0