C语言程序设计教程(第三版)课后习题8.1 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <cstdio>#include <algorithm>#include <cstring>using namespace std;int gcd(in…… 题解列表 2017年07月26日 0 点赞 0 评论 945 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int fun1(int n,int m) { int i,s; for(i=1;i<=n&&i<=m;i++) { …… 题解列表 2017年08月12日 0 点赞 0 评论 965 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (Java代码) 摘要:import java.util.Scanner; //抄别人的代码改成java public class Main{ public static int gcd(int a,…… 题解列表 2017年08月31日 0 点赞 0 评论 1023 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#inculde<stdio.h>int gy(int a,int b){ int i; for(i=(a>b?b:a);i>0;i--) { …… 题解列表 2017年09月25日 0 点赞 0 评论 866 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:/* 最大公约数与最小公倍数 */ #include<stdio.h> int get_gys(int a,int b) { int i; …… 题解列表 2017年10月26日 2 点赞 1 评论 905 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:/* 递归实现 */ #include<stdio.h> int get_gys(int a,int b) { if(a%b == 0) …… 题解列表 2017年10月26日 1 点赞 0 评论 777 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int ys(int m,int n){ int s; if(m>n) swap(m,n);…… 题解列表 2017年11月15日 0 点赞 0 评论 827 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码)(一般方法:辗转相除法) 摘要:解题思路:注意辗转相除时的变量的转换就可注意事项:参考代码:#include<stdio.h> int gcd(int a,int b); int lcm(int a,int b); int m…… 题解列表 2017年11月25日 2 点赞 0 评论 977 浏览 评分:0.0
WU-C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:#include<stdio.h> int maxyue(int a,int b) { int c; while(b!=0) { c=a%b; a=b; b=c; } …… 题解列表 2017年12月04日 21 点赞 6 评论 1740 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int max_gongyue(int a,int b){ int imax; int c=a>b?b:a; for(int i=c;…… 题解列表 2017年12月06日 0 点赞 0 评论 572 浏览 评分:0.0