C语言训练-求函数值 (C语言代码)用递归就行了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int x){ if(x==1) return 10; else if(x>1) return fun(x-1)+2…… 题解列表 2019年04月16日 0 点赞 0 评论 355 浏览 评分:0.0
C语言训练-求函数值-题解(C++代码) 摘要:递归 ```cpp #include using namespace std; int fact(int x_int) { if (x_int == 1) { ret…… 题解列表 2019年12月10日 0 点赞 0 评论 520 浏览 评分:0.0
C语言训练-求函数值-题解(C语言代码) 摘要: #include int main(int x) { scanf("%d",&x); f(x); printf("%d",f(x)); } int f(int x)…… 题解列表 2020年01月22日 0 点赞 0 评论 903 浏览 评分:0.0
C语言训练-求函数值-题解(C语言代码) 摘要: #include int main() { int f(int x); int x; scanf("%d",&x); …… 题解列表 2020年04月06日 0 点赞 0 评论 319 浏览 评分:0.0
C语言训练-求函数值-题解(Python代码) 摘要:56%的错误 也不知道哪里错了 ```python def demo(x): if x==1: return 10 elif x>1: r…… 题解列表 2020年04月08日 0 点赞 0 评论 477 浏览 评分:0.0
C语言训练-求函数值-题解(C语言代码) 摘要:```c // // Created by sairo on 2020/5/4. // #include int f(int x) { if (x == 1) { …… 题解列表 2020年05月04日 0 点赞 0 评论 332 浏览 评分:0.0
C语言训练-求函数值-题解(C语言代码) 摘要: #include int f(int x) { if(x==1) return 10; return f(x-1)+2; } …… 题解列表 2020年06月09日 0 点赞 0 评论 272 浏览 评分:0.0
C语言训练-求函数值-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int x=1,n; int f1=10; scanf("%d",&n); printf("%d",f1+2…… 题解列表 2020年07月23日 0 点赞 0 评论 274 浏览 评分:0.0