题解列表
调用函数,自定义函数之数字分离。
摘要:解题思路:先定义一维数组,gets()为输入,puts()为输出。在用strlen计算字符串的长度好进行for循环(进行多少从循环)。在用if语句进行添加空格。注意事项:类型为char,strlen为……
自定义函数处理素数,仅供参考,还有更简便的方法,欢迎各位大佬借鉴
摘要:参考代码:#includeint sushu(int a){ int i,flage=0; for(i=2;i<a;i++) { if(a%i==0)//判断是否是素数 { flage=1;/……
单精度输入三位小数输出
摘要:解题思路:注意事项:单精度要用float以及%f;参考代码:#include <stdio.h>int main(){ float a; scanf("%f",&a); printf("%.3f\n"……
数学思路来解这一道题的
摘要:解题思路:注意事项:参考代码:import mathwhile True: w, h = map(int, input().split()) if w==0 or h==0: ……
不同单词个数统-小白题解-C语言代码
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
#include <string.h>
char strArr[101];
char temp[101][101];
i……