多输入输出练习2 (C语言代码) 摘要:#include <stdio.h>#define PI 3.1415int main(){ int i,n; double r,s; while(scanf("%d",&n)…… 题解列表 2018年02月26日 0 点赞 0 评论 777 浏览 评分:0.0
利用getchar()和putchar()编写,无需for循环。 摘要:#include <stdio.h>int main(void){ int ch; while((ch=getchar())!='\n') //while循环中进行了两…… 题解列表 2018年02月26日 2 点赞 0 评论 1607 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题9.3 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.*;public class Main{ public static void main(String[] arg){ Scan…… 题解列表 2018年02月26日 0 点赞 0 评论 1362 浏览 评分:0.0
数列排序 (C语言代码) 摘要:#include <stdio.h>int main(){ int i,j,k,N; int a[9],b[9]; while(scanf("%d",&N)!=EOF) …… 题解列表 2018年02月26日 0 点赞 0 评论 745 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int num,m; //m是几位数 int a,b,c,d,e; //分别为个十百千万 scanf("…… 题解列表 2018年02月26日 0 点赞 0 评论 1051 浏览 评分:0.0
蓝桥杯算法提高VIP-多项式输出 (C语言代码) 摘要:解题思路:粗暴的循环+条件注意事项:注意用好if(a[i])参考代码:#include<stdio.h>#include<math.h>int main(){ int n,i,k; int a[100…… 题解列表 2018年02月26日 0 点赞 0 评论 935 浏览 评分:0.0
C语言训练-字符串正反连接 (C语言代码) 摘要:解题思路:利用发现的数学公式来解此题比较方便注意事项:参考代码:#include<stdio.h>#include<string.h> int main(){ int i, c, len; char …… 题解列表 2018年02月26日 0 点赞 0 评论 756 浏览 评分:0.0
蛇行矩阵 (C语言描述,变相输出矩阵) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,k,s,m,n; while(scanf("%d", &n)!=EOF){ …… 题解列表 2018年02月26日 1 点赞 0 评论 906 浏览 评分:0.0
C语言训练-求1+2!+3!+...+N!的和 (C++代码) 摘要:解题思路:注意事项:vc 6.0 long long 会报错参考代码:#include<iostream>using namespace std;int main(){ long long n,i,j…… 题解列表 2018年02月26日 0 点赞 0 评论 1172 浏览 评分:0.0