C语言程序设计教程(第三版)课后习题7.1 (C语言代码) 摘要:解题思路:首先我们需要知道什么叫素数,1,素数:指除了1和本身能整出的数就叫素数。注意事项:b每次循环需要归0一次;因为除0外任何数都能被1整除,所以我们直接跳过1;定i j 的值为2;参考代码#in…… 题解列表 2017年12月16日 0 点赞 0 评论 933 浏览 评分:0.0
WU-字符逆序 (C语言代码) 摘要:参考代码:#include<stdio.h> #include<string.h> int main() { char str[100]; int i; gets(str); f…… 题解列表 2017年12月16日 4 点赞 0 评论 1321 浏览 评分:0.0
蛇行矩阵 (C语言代码) 摘要:#include <stdio.h> int main(void) { int n, i, j, k, s, m; while (scanf("%d", &n) != EOF) { …… 题解列表 2017年12月16日 89 点赞 2 评论 1370 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.8 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>#include <string.h>int main(){ char s[80]; i…… 题解列表 2017年12月16日 0 点赞 0 评论 813 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>#include <string.h>void f(char s[],char b[]){ i…… 题解列表 2017年12月16日 0 点赞 0 评论 758 浏览 评分:0.0
The 3n + 1 problem (C语言代码) 摘要:#include <stdio.h> int main(void) { int i, j, k, max, n, len, t; while (scanf("%d%d", &i, &j) …… 题解列表 2017年12月16日 77 点赞 9 评论 1684 浏览 评分:9.0
C语言程序设计教程(第三版)课后习题8.4 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.*;public class Main1030 { public static void main(String[] args) { …… 题解列表 2017年12月16日 0 点赞 0 评论 933 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:为什么不行???参考代码:#include <iostream>using namespace std;int gcd(int x , int y){ if(!y)return x; re…… 题解列表 2017年12月16日 0 点赞 0 评论 912 浏览 评分:0.0
我美吗! 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> int main() { int a[100],n,sum; while(scan…… 题解列表 2017年12月16日 1 点赞 0 评论 1149 浏览 评分:0.0
拆分位数--循环结构 摘要:解题思路:用循环结构注意事项:3位数(i<3)参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int num,i,a[3],j=1; …… 题解列表 2017年12月16日 0 点赞 0 评论 774 浏览 评分:0.0