C语言训练-"水仙花数"问题2 (C语言代码) 摘要:解题思路:注意事项:水仙花数是三位数的数所以取值范围应该是100-1000之间参考代码:#include<stdio.h>int main(){ int n,a,b,c,i=0;; for(n=100…… 题解列表 2019年05月05日 0 点赞 0 评论 698 浏览 评分:0.0
C语言训练-"水仙花数"问题1 (C语言代码) 摘要:解题思路:注意事项:a:是求各位上的数 b:求十位上的数 c:求百位上的数参考代码:#include<stdio.h>int main(){ int n,a,b,c; scanf("%d"…… 题解列表 2019年05月05日 0 点赞 0 评论 834 浏览 评分:0.0
C二级辅导-阶乘数列 (C语言代码) 摘要:解题思路:注意事项:注意看题目要求:1、科学计数法 2、保留两位小数参考代码:#include<stdio.h>int main(){ int i,n,s; double sum…… 题解列表 2019年05月05日 0 点赞 0 评论 643 浏览 评分:0.0
[编程入门]选择排序 (C语言代码) 摘要:题目描述用选择法对10个整数从小到大排序。输入无输出排序好的10个整数样例输入4 85 3 234 45 345 345 122 30 12样例输出3412304585122234345345解题思…… 题解列表 2019年05月05日 0 点赞 0 评论 1262 浏览 评分:0.0
怎么说题没有看懂,看输入输出猜对了做法 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) …… 题解列表 2019年05月04日 0 点赞 0 评论 1259 浏览 评分:0.0
C语言训练-计算一个整数N的阶乘 (C语言代码) 摘要:参考代码:#include<stdio.h>int main(void){ double sum = 1; int n; scanf("%d", &n); for (i…… 题解列表 2019年05月04日 1 点赞 0 评论 1028 浏览 评分:0.0
C语言训练-舍罕王的失算 (C语言代码) 摘要:参考代码:#include<stdio.h>#include<math.h>int main(void){ double sum = 0; //d…… 题解列表 2019年05月04日 1 点赞 0 评论 1096 浏览 评分:4.7
[编程入门]宏定义的练习 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define fun(a,b) t=a%b;int main(){ int a,b,t; scanf("%d",&a); scanf(…… 题解列表 2019年05月04日 0 点赞 0 评论 1142 浏览 评分:0.0
[编程入门]带参数宏定义练习 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define fun(m,n) t=m,m=n,n=t;int main(){ int m,n,t; scanf("%d",&m); …… 题解列表 2019年05月04日 0 点赞 0 评论 723 浏览 评分:0.0
C语言训练-自由落体问题 (C语言代码) 摘要:参考代码:#include<stdio.h>int main(void){ int n; double sum = 0,h=100; scanf("%d", &n); …… 题解列表 2019年05月04日 2 点赞 0 评论 803 浏览 评分:0.0