当前位置:网站首页>Calculate a=1, a2=1/1=a1
Calculate a=1, a2=1/1=a1
2022-06-26 16:42:00 【Muzi..】
#include<stdlib.h>
#include<stdio.h>
float fun(int n);
int main()
{
int n;
printf("\nplease enter n:");
scanf("%d",&n);
printf("A%d=%lf\n",n,fun(n));
}
float fun(int n)
{
float A=1;
int i;
for(i=2;i<=n;i++)
{
A=1.0/(1+A);
}
return A;
}
边栏推荐
- 精致妆容成露营“软实力”,唯品会户外美妆护肤产品销量激增
- C语言所有知识点小结
- Redis migration (recommended operation process)
- 当一个程序员一天被打扰 10 次,后果很惊人!
- [from database deletion to running] JDBC conclusion (finish the series in one day!! run as soon as you finish learning!)
- Redis 概述整理
- Oilfield exploration problems
- [从零开始学习FPGA编程-46]:视野篇 - 集成电路的发展与技术进步
- 108. simple chat room 11: realize client group chat
- 数据分析----numpy快速入门
猜你喜欢
![[from database deletion to running] JDBC conclusion (finish the series in one day!! run as soon as you finish learning!)](/img/75/2fb1a4e6215e404df34849e9e4f21a.png)
[from database deletion to running] JDBC conclusion (finish the series in one day!! run as soon as you finish learning!)

SAP OData development tutorial - from getting started to improving (including segw, rap and CDP)

JUnit unit test

MS|谢黎炜组发现混合益生菌制剂及其代谢产物可缓解结肠炎

Arduino uno + DS1302 simple time acquisition and serial port printing

stm32h7b0替代h750程序导致单片机挂掉无法烧录程序问题

GUI+SQLServer考试系统

Stm32h7b0 replaces the h750 program, causing the MCU to hang up and unable to burn the program

5G未平6G再启,中国引领无线通信,6G的最大优势在哪里?
![[Blue Bridge Cup training 100 questions] scratch distinguishing prime numbers and composite numbers Blue Bridge Cup scratch competition special prediction programming question intensive training simul](/img/26/c0c8a406ff4ffe0ae37d277f730bd0.png)
[Blue Bridge Cup training 100 questions] scratch distinguishing prime numbers and composite numbers Blue Bridge Cup scratch competition special prediction programming question intensive training simul
随机推荐
精致妆容成露营“软实力”,唯品会户外美妆护肤产品销量激增
Knowing these commands allows you to master shell's own tools
This year, the AI score of college entrance examination English is 134. The research of Fudan Wuda alumni is interesting
[Blue Bridge Cup training 100 questions] scratch distinguishing prime numbers and composite numbers Blue Bridge Cup scratch competition special prediction programming question intensive training simul
Redis顺序排序命令
Kept to implement redis autofailover (redisha) 1
Redis的ACID
day10每日3题(2):统计最大组的数目
请指教同花顺软件究竟是什么?网上开户是否安全么?
股票开户优惠链接,我如何才能得到?在线开户安全么?
Redis migration (recommended operation process) 1
Redis 迁移(操作流程建议)1
长安链交易防重之布谷鸟过滤器
Cuckoo filter for Chang'an chain transaction
Stm32h7b0 replaces the h750 program, causing the MCU to hang up and unable to burn the program
Arduino uno + DS1302 simple time acquisition and serial port printing
Keepalived 实现 Redis AutoFailover (RedisHA)1
当一个程序员一天被打扰 10 次,后果很惊人!
网页课程设计大作业——华山旅游网
Mono 的一些实例方法