wu-C语言程序设计教程(第三版)课后习题9.6 (C语言代码) 摘要:参考代码:#include<stdio.h> int main() { float a; scanf("%f",&a); printf("%6.2f\n",a); printf("…… 题解列表 2017年12月07日 2 点赞 0 评论 1551 浏览 评分:0.0
wu-C语言程序设计教程(第三版)课后习题9.4 (C语言代码) 摘要:参考代码:#include<stdio.h> #define LEAP_YEAR(y) y=(y%4==0&&y%100!=0||y%400==0) int main() { int y; …… 题解列表 2017年12月07日 1 点赞 0 评论 1521 浏览 评分:0.0
素数求和 (C语言代码) 摘要:解题思路:求素数第三种方法 注意事项:和的大小参考代码:#include<stdio.h>#include<math.h>int main(){ int i,j,n,a; long sum=0; sc…… 题解列表 2017年12月07日 1 点赞 0 评论 1643 浏览 评分:0.0
Pascal三角 (C语言代码) 摘要:#include <stdio.h> #define N 20 int main() { int n,i=0,j=0,k=0,a[N][N]; scanf("%d",&n); for…… 题解列表 2017年12月07日 7 点赞 0 评论 3045 浏览 评分:9.7
斜率计算 (C语言代码) 摘要:注意事项:结果是整数,懒得改了#include<stdio.h>int main(){ float x1,x2,y1,y2; scanf("%f%f%f%f",&x1,&y1,&x2,&y…… 题解列表 2017年12月07日 1 点赞 0 评论 6195 浏览 评分:5.2
新生舞会 (C语言代码) 摘要:#include<stdio.h>#include<string.h>struct student { char name[21]; char num[11]; char sex[2]; }; …… 题解列表 2017年12月07日 0 点赞 0 评论 1890 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.4 (C语言代码) 摘要:解题思路:注意事项:一定要细心!参考代码:#include <stdio.h>void test();int i,j, arr[3][3];int main(){ for( i=0; i<3; i++…… 题解列表 2017年12月07日 0 点赞 0 评论 1871 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.3 (C语言代码) 摘要:解题思路:注意事项:一定要细心!参考代码:#include <stdio.h>int test(int a);int main(){ int a=7; scanf("please intput a n…… 题解列表 2017年12月07日 0 点赞 0 评论 1412 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.2 (C语言代码) 摘要:解题思路:注意事项:一定要细心!参考代码:#include <stdio.h>#include <math.h>int test1(double a,double b,double c){ doubl…… 题解列表 2017年12月07日 0 点赞 0 评论 2041 浏览 评分:0.0
最长字符串 (C语言代码) 摘要:#include<stdio.h>int len(char *arr){ int i=0; for(;arr[i]!='\0';i++); return i;}int main(){ …… 题解列表 2017年12月07日 0 点赞 0 评论 1885 浏览 评分:0.0