c语言程序中如何计算S=1+1/2!+1/3!...1/n!的和?

日期:2019-09-05 09:00:40 人气:2

c语言程序中如何计算S=1+1/2!+1/3!...1/n!的和?

12345678910111213141516//#include "stdafx.h"//vc++6.0加上这一行.#include "stdio.h"int main(void){ int m,i; double s; while(1){ printf("Enter m(m>0)...\nm="); scanf("%d",&m);
    A+
热门评论