输出正反三角形 (C语言代码) 摘要:解题思路:注意事项:两个三角形前面的空格也与m的值有关参考代码:#include<stdio.h> int main(){ int m,n,i; scanf("%d %d",&n,&m); …… 题解列表 2017年09月19日 0 点赞 0 评论 1148 浏览 评分:0.0
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int isprime(int n);int main(){ int m,n,i; int temp = 0; …… 题解列表 2017年09月19日 2 点赞 0 评论 1017 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.5 (C语言代码) 摘要:#include<stdio.h> int main(void){ printf("**************************\n"); printf("Hello World!\n…… 题解列表 2017年09月19日 0 点赞 0 评论 958 浏览 评分:0.0
C语言考试练习题_排列 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int i,j,k,t; int a,b,c,d; scanf("%d%d%d%d",&a,&b,&c,&d…… 题解列表 2017年09月18日 0 点赞 0 评论 943 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#incude <stdio.h>int main (){int a,b;while (1){scanf ("%d%d",&a,&b);printf("%d",a+b);…… 题解列表 2017年09月18日 0 点赞 0 评论 798 浏览 评分:0.0
输出正反三角形 (C语言代码)格式错误!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,j,n,m; scanf("%d%d",&n,&m); for(i=n-1,j=0;i>=0,…… 题解列表 2017年09月18日 0 点赞 2 评论 1308 浏览 评分:6.0
字符串比较 (C语言代码)答案错误???? 摘要:解题思路:字符数组存字符串,一个个比较,若有不同(大小)则输出并退出循环,最后全部比完,都到了最后"\0"位置则字符串相同注意事项:参考代码:#include <stdio.h>int main(){…… 题解列表 2017年09月18日 0 点赞 0 评论 826 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.6 (C语言代码) 摘要:解题思路:利用switch(表达式1){ case 常量表达式1: 语句1;break; case 常量表达式2: 语句2;break; case 常量表达式3: 语句3;break…… 题解列表 2017年09月18日 1 点赞 0 评论 1228 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.5 (C语言代码) 摘要:解题思路:对于三个条件的判断语句,我们采用if{……}else if{……}else 语句 注意事项:最后跳出判断语句输出y参考代码:#include<stdio…… 题解列表 2017年09月18日 3 点赞 2 评论 732 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:解题思路:利用两次双目运算符取求得最大值注意事项:双目运算符要书写正确temp=a>b?a:b; max=temp>c?temp:c;参考代码:#include<stdio.h>int main…… 题解列表 2017年09月17日 3 点赞 0 评论 1525 浏览 评分:0.0