1137: C语言训练-求函数值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a=10,i,x;void fun1(){ scanf("%d",&x); if(x==1) { …… 题解列表 2022年01月25日 0 点赞 0 评论 531 浏览 评分:0.0
C语言训练-求函数值-题解(C++代码) 摘要:递归 ```cpp #include using namespace std; int fact(int x_int) { if (x_int == 1) { ret…… 题解列表 2019年12月10日 0 点赞 0 评论 1066 浏览 评分: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 评论 1491 浏览 评分:0.0
C语言训练-求函数值-题解(C语言代码) 摘要: #include int main() { int f(int x); int x; scanf("%d",&x); …… 题解列表 2020年04月06日 0 点赞 0 评论 829 浏览 评分:0.0
C语言训练-求函数值-题解(Python代码) 摘要:56%的错误 也不知道哪里错了 ```python def demo(x): if x==1: return 10 elif x>1: r…… 题解列表 2020年04月08日 0 点赞 0 评论 992 浏览 评分:0.0
C语言训练-求函数值-题解(C语言代码) 摘要: #include int f(int x) { if(x==1) return 10; return f(x-1)+2; } …… 题解列表 2020年06月09日 0 点赞 0 评论 588 浏览 评分: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 评论 948 浏览 评分:0.0
C语言训练-求函数值-题解(C语言代码) 摘要:```c #include int fac(int n) { if (n == 1) return 10; else return fac…… 题解列表 2020年10月07日 0 点赞 0 评论 668 浏览 评分:0.0
C语言训练-求函数值-题解(C语言代码)(递归) 摘要:规律就是第一个为10,往后每一个加2 完全没看懂题.....第一种递归 ```c #include int zi(int x) { if(x==1) { …… 题解列表 2021年02月08日 0 点赞 0 评论 601 浏览 评分:0.0
求函数值 递归极简 摘要: import java.util.Scanner; public class 求函数值 { public static void main(String[] …… 题解列表 2021年04月01日 0 点赞 0 评论 811 浏览 评分:0.0