poj1517
来源:互联网 发布:国际大数据医疗公司 编辑:程序博客网 时间:2024/06/05 18:23
// poj1517.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdio.h>
double e(int n)
{
int k;
int multi = 1;
if(n == 0)
return 1;
else
{
for(k=n;k>=2;k--)
multi *= k;
return (double)1/multi + e(n-1);
}
}
int main()
{
int i;
printf("n e/n");
printf("- -----------/n");
for(i=0;i<=9;i++)
{
printf("%d %.9f/n",i,e(i));
}
return 0;
}
- poj1517
- poj1517
- poj1517 u Calculate e
- 北大ACM poj1517
- 【POJ1517】:u Calculate e
- HDU1012 POJ1517 ZOJ1113 UVALive2083 u Calculate e【水题】
- 第一篇博客
- aspnet_regsql.exe 工具注册数据库
- wamp环境下不支持GD库的解决方法
- Simple guide to speaking foreign languages
- Show和ShowDialog
- poj1517
- PHP魔术常量
- java实现线程间的协作
- 百变方块V1.0
- stl allocator实现代码
- Ubuntu上stack size的hard limit和soft limit设置问题
- 固定的,高效的内存池实现机器应用
- 实现位数组
- 我的研究方向。。。。。。