用筛法求之N内的素数。 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int test(int b){ int j; if(b<2) return 0; for(j=2;j<b;j++) { if(b%…… 题解列表 2017年10月13日 0 点赞 0 评论 930 浏览 评分:0.0
C语言训练-数字母 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void main(){ char marry[1000]={0}; int m,n,k=0; ge…… 题解列表 2017年10月14日 0 点赞 0 评论 897 浏览 评分:0.0
字符逆序 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void main(){ char marry[1000]={0}; int m,n; gets(m…… 题解列表 2017年10月14日 0 点赞 0 评论 816 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int x,y; scanf("%d",&x); if (x<60)y=&#…… 题解列表 2017年10月14日 5 点赞 1 评论 1104 浏览 评分:0.0
printf基础练习2 (C语言代码) 摘要:解题思路:注意事项:参考代码#include<stdio.h>int main(void){ int a; printf("输入一个整数,不超过10^9\n"); scanf("%d…… 题解列表 2017年10月14日 0 点赞 0 评论 879 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int cowNum(int n); int main(){ int n; while(scanf("%d", &n) &…… 题解列表 2017年10月14日 0 点赞 0 评论 745 浏览 评分:0.0
a+b 摘要:解题思路:#include<stdio.h>void main() { float a,b; while(1){scanf("%f%f",&a&b);printf("a+b=…… 题解列表 2017年10月14日 1 点赞 1 评论 550 浏览 评分:0.0
幸运数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;const int M=500000;int a[M],d;void f(int *s,int…… 题解列表 2017年10月14日 0 点赞 0 评论 1765 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void b(int a[][3]);int main(){int q[3][3],i,j;for( i=0;i<3;i++)for( …… 题解列表 2017年10月14日 0 点赞 0 评论 715 浏览 评分:0.0
K-进制数 (C语言描述,蓝桥杯) 摘要:#include <stdio.h> #include <math.h> int count(int ,int ); int main() { int N,K,max,count0=0,s…… 题解列表 2017年10月20日 6 点赞 4 评论 1056 浏览 评分:0.0