题解 1015: [编程入门]求和训练

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

求 和 训 练

摘要: #include #include using namespace std; int main() { int a, b, c; ……

求和训练(递归)

摘要:解题思路:  递归注意事项: 在求倒数时,将1/c写为1.0/c或者1/(float) c参考代码:#include <stdio.h> // 求1~a的和 int sum_add(int a……

1015-求和训练

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef long long LL;LL sum(int a){ LL res=0; f……

编写题解 1015:求和训练

摘要:import java.util.Scanner; public class Main {     public static void main(String[] args) {       ……