C++超级简单的基础题解 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int sum = 1; int n; while …… 题解列表 2022年11月02日 0 点赞 0 评论 307 浏览 评分:0.0
C艹之保留两位小数 摘要: #include #include using namespace std; int main() { float s = (15+25)*…… 题解列表 2022年11月03日 0 点赞 0 评论 1205 浏览 评分:9.9
新手上路,通俗易懂,就是麻烦 摘要:# MarkDown编辑器基本使用说明 #include #include int main() { long long n, a, c, d, e, f; long long …… 题解列表 2022年11月03日 0 点赞 0 评论 386 浏览 评分:0.0
求整数的和与均值(c++最简解) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ int n,sum,i,a; …… 题解列表 2022年11月03日 0 点赞 0 评论 717 浏览 评分:9.0
完数的判断 c语言只用for循环和if语句实现 无数组无指针 摘要:解题思路:用最原始的方法,在只学到控制语句、循环语句的条件下,使用双循环,外层j循环寻找完数,内层i循环寻找因子,并使用新循环输出因子参考代码:#include<stdio.h>int main(){…… 题解列表 2022年11月03日 0 点赞 0 评论 432 浏览 评分:0.0
1018: [编程入门]有规律的数列求和(C语言) 摘要:题目:有一分数序列: 2/1 3/2 5/3 8/5 13/8 21/13......求出这个数列的前N项之和,保留两位小数。解题思路:设分子为m,分母为n,定义为浮点类型,用两个变量辅助,a用来存储…… 题解列表 2022年11月03日 0 点赞 0 评论 396 浏览 评分:0.0
最高的分数(c++超简单) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, n, max; cin >> n; m…… 题解列表 2022年11月03日 0 点赞 0 评论 712 浏览 评分:9.9
打印图案(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){cout<<" *"<<endl;cout<<" * *"<<endl…… 题解列表 2022年11月03日 0 点赞 0 评论 696 浏览 评分:9.9
求平方和(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<…… 题解列表 2022年11月03日 0 点赞 0 评论 691 浏览 评分:9.0
求长方形面积(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<…… 题解列表 2022年11月03日 0 点赞 0 评论 697 浏览 评分:9.3