简单的a+b (Java代码) 摘要:解题思路:使用输入函数来解题注意事项:代码技术记得关闭扫描器,不然编译器会有警告参考代码:/*输入任意两个整数,求两数之和*/import java.util.Scanner;public class…… 题解列表 2018年08月22日 0 点赞 0 评论 1417 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.6 (C语言代码) 摘要:解题思路:switch(表达式) /*首先计算表达式的值*/ { case 常量表达式1:语句1; case 常量表达式2:语句2; case 常量表达式3:语句3; … … case 常量表达式n:…… 题解列表 2018年08月22日 0 点赞 0 评论 886 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a>b) …… 题解列表 2018年08月22日 0 点赞 0 评论 605 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.3 (C语言代码) 摘要:参考代码:#include<stdio.h> int main() { int a,b,c=0; scanf("%d",&a); for(b=0;a>0;a--) …… 题解列表 2018年08月22日 1 点赞 1 评论 355 浏览 评分:0.0
C二级辅导-进制转换 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); printf("%o",a);return 0;}…… 题解列表 2018年08月22日 0 点赞 0 评论 674 浏览 评分:0.0
C二级辅导-温度转换 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float f,c; scanf("%f",&f); c=5*(f-32)/9; printf("%.2f",c…… 题解列表 2018年08月22日 0 点赞 0 评论 714 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> in mian() { int a,b,m=0; whil…… 题解列表 2018年08月22日 0 点赞 0 评论 622 浏览 评分:0.0
C二级辅导-分段函数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>float fenduan(float x){ float y; if(x<1) y=x; else if(x>=1&&x<10) …… 题解列表 2018年08月22日 0 点赞 0 评论 1164 浏览 评分:0.0
【明明的随机数】 (C语言代码)冒泡排序后去重 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<malloc.h>void fun(int a[],int m){ int i,j,t,l,q,k; for(i=0…… 题解列表 2018年08月22日 0 点赞 0 评论 2082 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double fact(double n){double a=1; for(int i=1;i<=n;i…… 题解列表 2018年08月22日 0 点赞 0 评论 1465 浏览 评分:0.0