题解 1137: C语言训练-求函数值

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

筛选

简单的递归

摘要:#include<stdio.h> int ans(int n); int main(void) {     int n;     scanf("%d",&n);     printf("……

简单的递归进行

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int f(int x){ if(x==1) return 10; if(x>1) return f(x-1)+2;}int main(……

求函数值 递归极简

摘要: import java.util.Scanner; public class 求函数值 { public static void main(String[] ……

1137求函数值

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a = 10; int n; cin >> n; if (n ……

1137: C语言训练-求函数值

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a=10,i,x;void fun1(){    scanf("%d",&x);    if(x==1)    {       ……