[编程入门]求和训练-题解(C语言代码) 摘要:/*求第一个和时用某大数学家的方法*/#include<stdio.h>int main(){ int a, b, c; scanf("%d%d%d", &a, &b, &c); float suma…… 题解列表 2020年11月28日 0 点赞 0 评论 592 浏览 评分:0.0
[编程入门]水仙花数判断-题解(C语言代码) 摘要:#include<stdio.h>#include<math.h>int main(){ for (int i = 100; i < 1000; i++) { if (pow(i / 100, 3)…… 题解列表 2020年11月28日 0 点赞 0 评论 814 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct numberofday{ int year; int month; int day;} d;const int r=30;…… 题解列表 2020年11月28日 0 点赞 0 评论 1508 浏览 评分:0.0
巨大的数-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,q,i,sum; int a[100]; scanf("%d",&n); for(i=0;i<n;i…… 题解列表 2020年11月28日 0 点赞 0 评论 890 浏览 评分:0.0
统计字符个数-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){char a[10];int i,b,c,d;b=c=d=0;for(i=0;i<10;i++){scanf("…… 题解列表 2020年11月28日 0 点赞 0 评论 894 浏览 评分:0.0
统计成绩-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int arr[10]; float avg=0; int num=0,i=0; w…… 题解列表 2020年11月28日 0 点赞 0 评论 826 浏览 评分:0.0
回文判断-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; int n,i,flag=1; gets(a); …… 题解列表 2020年11月28日 0 点赞 0 评论 758 浏览 评分:0.0
[编程入门]自定义函数之字符类型统计-题解(C语言代码) 摘要:解题思路:就把循环的写到函数中就完事了注意事项:好心情写题最佳参考代码:#include<stdio.h>void fact(char a[],int n){ int i; int number=0,…… 题解列表 2020年11月29日 0 点赞 0 评论 1203 浏览 评分:0.0
[编程入门]数字的处理与判断-题解(C语言代码) 摘要:解题思路:(参考他人代码优化 )在for循环中用getchar()接收输入的数字字符,并将其ASCII码赋值给temp(temp的数据类型为int),temp==10时(换行“\n”的ASCII码是…… 题解列表 2020年11月29日 0 点赞 0 评论 2338 浏览 评分:0.0
[编程入门]字符串分类统计-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char s[100]; int a=0,b=0,c=0,d=0; int i; …… 题解列表 2020年11月29日 0 点赞 0 评论 632 浏览 评分:0.0