C语言程序设计教程(第三版)课后习题10.2 (C语言代码) 摘要:#include "stdio.h"#include "string.h"int a(char str1[],char str2[]){ int i; for(i=0;i<3;i++) { if(s…… 题解列表 2017年06月18日 0 点赞 0 评论 1686 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:#include<stdio.h> int main(){ int h,f,d,a,u,e,w,i,q,n,m; float l,g,y,s,o; scanf("%d %d",&m,&n); if(…… 题解列表 2017年06月18日 3 点赞 0 评论 1206 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:#include <stdio.h>int main(){ int i; long n,s=1,c=0;//定义long变量,题目N在20以内不需要long long scanf("%d",&n); …… 题解列表 2017年06月17日 0 点赞 0 评论 1819 浏览 评分:0.0
C二级辅导-阶乘数列 (C语言代码) 摘要:题目分析 阶乘 分两步 一个乘一个累加代码#include<stdio.h> int main() { int i; double j=1,sum=0;//注意了 这么大累…… 题解列表 2017年06月17日 0 点赞 0 评论 1150 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:#include<stdio.h>int main(){ int old = 1, new1 = 0, new2 = 0, new3 = 0, year, total; printf("please …… 题解列表 2017年06月17日 9 点赞 2 评论 1396 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:#include "stdio.h"int dc(int a,int b){ int r; while(1) { r=a%b; if(r==0)return b; a=b; b=r; }}in…… 题解列表 2017年06月17日 0 点赞 0 评论 933 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.2 (C语言代码) 摘要:#include "stdio.h"main(){ int i,j,a[10],k,min,t; for(i=0;i<10;i++) { scanf("%d",&a[i]); } for(i=0;…… 题解列表 2017年06月17日 1 点赞 0 评论 826 浏览 评分:6.0
2004年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:思路:代公式答案:#include<stdio.h> double fact(int n); double mypow(double x,int n); double fact(int n){ …… 题解列表 2017年06月17日 0 点赞 0 评论 877 浏览 评分:8.0
C二级辅导-阶乘数列 (C语言代码) 摘要:思路:用循环做出阶乘,然后累加就行了答案:#include<stdio.h> int main(){ int i; double sum=0,a=1; for(i=1;i<=30;i++…… 题解列表 2017年06月17日 1 点赞 0 评论 1100 浏览 评分:0.0
C语言考试练习题_保留字母 (C语言代码) 摘要:解题思路以及注意事项:用gets()函数让用户输入字符串。用strlen()函数判断用户输入了几个字符,别忘了string.h。用for()循环依次判断用户输入的每个字符,不是字母的不输出。实例代码:…… 题解列表 2017年06月17日 1 点赞 1 评论 1515 浏览 评分:8.0