考研
文章平均质量分 87
要自在
好好学习天天向上
展开
-
安徽师范大学2021年898计算机答案
安师大2021年硕士研究生招生考试898初试试题解答一、程序填空题 用递归方法求下式的值,请将程序补充完整,使程序得出正确的结果。#include<stdio.h>float fun(float x,int n){ float temp; if(n==0) temp=1; else if(n==1) temp=x; else temp=((2*n-1)*x*fun(x,n-1)-(n-1)*fun(x,n-1))/n;//填空 return原创 2022-01-11 14:45:50 · 1680 阅读 · 4 评论 -
安徽师范大学2020年898真题答案解析
安师大898 C语言真题参考答案个人整理非官方答案。仅供参考!!!一、程序填空题1.以下程序计算Fibonacci数列:1, 1, 2, 3, 5, 8, 13……的前20项。请将程序补充完整,使程序得出正确的结果。#include <stdio.h>int main(){ int i; long f1,f2;//填空 f1=1;f2=1; for(i=0;i<10;i++){ printf("%ld\n%ld\n",f1,f原创 2021-10-27 21:01:02 · 2282 阅读 · 12 评论