C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:注意事项:参考代码: #include <stdio.h>int main(){ int a,b,i,j; scanf("%d %d",&a,&b); …… 题解列表 2017年12月15日 0 点赞 0 评论 998 浏览 评分:0.0
我美吗! 摘要:#include <stdio.h> int main() { int m,n,t; int yue,bei; int m1,n1; //用来储… 题解列表 2017年12月11日 1 点赞 1 评论 1199 浏览 评分:9.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:辗转相除法求最大公约数和 最小公倍数。注意事项:最小公倍数等于输入的两个数除最大公约数。参考代码:#include<stdio.h>main()//i是最大公约数,j是最小公倍数。{ int…… 题解列表 2017年11月29日 1 点赞 0 评论 819 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:我这运行出来结果是对的,我是来求助的。。请问大神哪里错了呢?是不是要按规定的变量名命名?注意事项:参考代码:#include<stdio.h>int main(){ int a,b,i…… 题解列表 2017年10月25日 0 点赞 0 评论 870 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:算法实现注意事项:参考代码: int m, n, a, b, t, c; scanf("%d%d", &a, &b); m=a; n=b; while(b!=0) …… 题解列表 2017年10月11日 1 点赞 0 评论 863 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,i,j;//i用于计数循环j是个空杯子 scanf("%d %d",&a,&b); if(a…… 题解列表 2017年10月05日 1 点赞 0 评论 1060 浏览 评分:3.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c,d; printf("请输入两个正整数,求最小公倍数与最大公约数》》》》\n");…… 题解列表 2017年09月03日 0 点赞 0 评论 982 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:1.自定义两个函数分别求最大公因数和最小公倍数注意事项:参考代码:#include<stdio.h>int maxgongyue(int m,int n);int mingongbei(in…… 题解列表 2017年09月01日 0 点赞 0 评论 992 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include "stdio.h"int gcd(int a,int b)//获取最大公约数{ if(a%b==0) return b; return gcd(b,a…… 题解列表 2017年08月29日 0 点赞 0 评论 824 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:递归求最大公因数注意事项:参考代码:#include "stdafx.h"int gcd(int a,int b)//获取最大公约数{ if(a%b==0) return b; retur…… 题解列表 2017年08月29日 0 点赞 0 评论 1147 浏览 评分:0.0