C语言训练-求函数值 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int num[10000]={0},i,n; num[1]=10; for(i=2;i<10…… 题解列表 2017年08月30日 0 点赞 0 评论 1236 浏览 评分:2.0
WU-C语言训练-求函数值 (C语言代码) 摘要:参考代码:#include<stdio.h> int f(int x) { if(x==1) return 10; if(x>1) return f(x-1)+2; } i…… 题解列表 2017年12月28日 1 点赞 0 评论 1173 浏览 评分:0.0
C语言训练-求函数值 (C语言代码)(递归) 摘要:解题思路:注意事项:参考代码:/*按如下递归公式求函数值。 x=1时 f(x)=10;x>1时 f(x)=f(x-1)+2*/#include <stdio.h>int f(int x);int ma…… 题解列表 2018年03月08日 1 点赞 0 评论 1610 浏览 评分:0.0
编写题解 1137: C语言训练-求函数值 摘要:解题思路:注意事项:参考代码:n =int(input())ls = [10]for i in range(n): ls.append(ls[-1]+2)print(ls[-2])…… 题解列表 2021年12月15日 0 点赞 0 评论 241 浏览 评分:0.0
1137: C语言训练-求函数值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a=10,i,x;void fun1(){ scanf("%d",&x); if(x==1) { …… 题解列表 2022年01月25日 0 点赞 0 评论 234 浏览 评分:0.0
Hifipsysta-1137题-C语言训练-求函数值(C++代码)普通递归法 摘要:```cpp #include using namespace std; int func(int x){ int y=0; if(x==1){ y=1…… 题解列表 2022年01月30日 0 点赞 0 评论 164 浏览 评分:0.0
C语言训练-求函数值 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class 递归 { public static void main(String args[]){ …… 题解列表 2018年03月01日 0 点赞 0 评论 649 浏览 评分:0.0
编写题解 1137: C语言训练-求函数值 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string.h>#include<ctype.h>#include<math.h>using namespace …… 题解列表 2022年03月21日 0 点赞 0 评论 184 浏览 评分:0.0
题解 1137: C语言训练-求函数值(C) 摘要:参考代码:#include<stdio.h> int main(void){ int x,y=10; int i; scanf("%d",&x); if(x>1){ …… 题解列表 2022年08月27日 0 点赞 0 评论 192 浏览 评分:0.0
C语言训练-求函数值 (C语言代码) 摘要:#include <stdio.h>int main(){ int x,f=10; scanf("%d",&x); if(x==1)f=10; else f=1…… 题解列表 2018年02月11日 0 点赞 0 评论 762 浏览 评分:0.0