C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:/* 2018年4月30日17:58:27 目的: 写两个函数,分别求两个整数的最大公约数和最小公倍数,用主函数调用这两个函数,并输出结果两个整数由键盘输入。 */ #include <…… 题解列表 2018年05月01日 0 点赞 0 评论 829 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int HCF(int x, int y); &n 题解列表 2018年04月27日 3 点赞 0 评论 809 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int max(int m, int n); int min(int m, int n); int main(void) {…… 题解列表 2018年04月25日 1 点赞 2 评论 736 浏览 评分:8.8
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int gcd(int a,int b) { if(b==0) return a; retu…… 题解列表 2018年04月24日 0 点赞 0 评论 676 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:先求最小公倍数,思路是能被两个数整除的即最小公倍数参考代码:#include<stdio.h>int maxyue(int a,int b){ int t,i; for(i=1;…… 题解列表 2018年04月10日 0 点赞 0 评论 596 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C++代码) 摘要:解题思路:写的时候把最大公约和最小公倍弄反了,凑合着看吧。。。。注意事项:参考代码:#include<iostream>using namespace std;void maxyue(int a,in…… 题解列表 2018年04月01日 0 点赞 0 评论 519 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码)求最小公倍数和最大公约数 摘要:参考代码如下:#include <stdio.h> //求最大公约数 int GCD(int a, int b) { int c = a % b; while (c !=…… 题解列表 2018年03月26日 0 点赞 0 评论 1114 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class C1027 { public static void main(String[] args) …… 题解列表 2018年03月24日 1 点赞 0 评论 1044 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int gcd(int a,int b){ int n,k; if(a<b) { n=a; …… 题解列表 2018年03月05日 0 点赞 0 评论 768 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void ios(int m,int n){ int t,h,a; if(m>n) { t=m; m=n; n=t; } h=m…… 题解列表 2018年02月23日 0 点赞 0 评论 721 浏览 评分:0.0