编程入门-求和训练 摘要: 注意for循环的 表达式2 用|| 而不是&& 只要还有一个没满足 就继续循环下去 参考代码:#include<stdio.h> int main(){ int a; int b; i…… 题解列表 2022年11月21日 0 点赞 0 评论 435 浏览 评分:0.0
选择法)最大数位置 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[1001]; int i; int j; int n; int max…… 题解列表 2022年11月21日 0 点赞 0 评论 656 浏览 评分:6.7
这或许是最简单的方法.(用getchar()读取每一个字符 + isalpha()函数判断 摘要:解题思路:根本不需要用到字符串函数,让程序一个一个字符去读取然后输出就可以了, 不需要先读取后删除, 如果遇到不是英文字母的直接不输出注意事项:参考代码:int main(){ char ch;…… 题解列表 2022年11月21日 0 点赞 0 评论 579 浏览 评分:9.9
编写题解 1020: [编程入门]猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,num=1,result; scanf("%d",&n); for(i=1;i<n;++i…… 题解列表 2022年11月21日 0 点赞 0 评论 417 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d,e,i,num,result; scanf("%d",&i); if(i>=0 &…… 题解列表 2022年11月21日 0 点赞 0 评论 442 浏览 评分:0.0
编写题解 1008: [编程入门]成绩评定 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if(x>=0 && x<=100) …… 题解列表 2022年11月21日 0 点赞 0 评论 408 浏览 评分:0.0
编写题解 1007: [编程入门]分段函数求值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if(x<1) y=x; els…… 题解列表 2022年11月21日 0 点赞 0 评论 402 浏览 评分:0.0
编写题解 1005: [编程入门]温度转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float c,F; scanf("%f",&F); c=5*(F-32)/9; pri…… 题解列表 2022年11月21日 0 点赞 0 评论 457 浏览 评分:0.0
编写题解 1001: [编程入门]第一个HelloWorld程序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\nHello World!\n******…… 题解列表 2022年11月21日 0 点赞 0 评论 427 浏览 评分:0.0
编写题解 1003: [编程入门]密码破译 摘要:解题思路:注意事项:参考代码:#includeint main(){ char a,b,c,d,e; scanf("%c%c%c%c%c",&a,&b,&c,&d,&e); a=a+4; b=b+4;…… 题解列表 2022年11月21日 0 点赞 0 评论 717 浏览 评分:6.0