简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,sum; scanf("%d%d",&a&b); sum=a+b pr…… 题解列表 2018年09月19日 0 点赞 0 评论 1012 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\n"); printf("He…… 题解列表 2018年09月19日 0 点赞 0 评论 1120 浏览 评分:0.0
求圆的面积 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main () { float a,r; …… 题解列表 2018年09月19日 0 点赞 0 评论 1237 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:最常规的思路注意事项:参考代码:#include<stdio.h>int main(){ long int num; int a,b,c,d,e,place; scanf("%ld",&nu…… 题解列表 2018年09月18日 0 点赞 0 评论 1392 浏览 评分:0.0
辗转相除法解决最大公约数,最小公倍数等于两数之积除以其最大公约数 (C语言代码) 摘要:解题思路: 辗转相除法解决最大公约数,最小公倍数等于两数之积除以其最大公约数注意事项:算法原理:若a除以b的余数为r , 则有 (a , b) = ( b ,r ) ((a,b)表示a和b的最大公约…… 题解列表 2018年09月18日 20 点赞 11 评论 3332 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题5.6 (C语言代码) 摘要:解题思路:采用switch语句实现。注意事项:参考代码:#include<stdio.h>int main(){ int num; scanf("%d",&num); switch(num/10) {…… 题解列表 2018年09月18日 0 点赞 0 评论 1238 浏览 评分:0.0
蓝桥杯算法提高VIP-寻找三位数 (C语言代码)简单写法(暴力破解) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d,e,f,g,h,k; int sum1=0,sum2=0,sum3=0; for( a…… 题解列表 2018年09月18日 0 点赞 0 评论 1575 浏览 评分:0.0
弟弟的作业 (C++代码) 摘要:解题思路:卡格式来输入,十分容易注意事项:参考代码:#include<iostream> #include<cstring> using namespace std; int main() { …… 题解列表 2018年09月18日 1 点赞 0 评论 2312 浏览 评分:3.2
母牛的故事 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>static int new1 = 1, year=0; // 静态变量 ,new1:一年可生产数, year=每年可新蹭生产数 st…… 题解列表 2018年09月18日 0 点赞 0 评论 1951 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题9.6 (C语言代码) 摘要:解题思路:依次输出次数,换行,进位,应用for循环。注意事项:注意小数点位数,注意换行空格。参考代码:#include<stdio.h>int main(){int i;float s;scanf("…… 题解列表 2018年09月18日 0 点赞 0 评论 1603 浏览 评分:0.0