题目内容

给定程序中,函数fun的功能是:根据整型形参n,计算如下公式的值。A1=1,A2=1/(1+A1),A3=1/(1+A2),…,An=1/(1+A(n-1))例如,若n=10,则应输出0.617977。#include#include#includefloatfun(intn){floatA=1;inti;for(【1】;i<=n;i++)A=【2】;returnA;}intmain(){intn;system("CLS");printf("\nPleaseentern:");scanf("%d",&n);printf("%d=%lf\n",n,【3】);return0;}

查看答案
更多问题

Fill in the blanks with words given below, changing the form if necessary. Fill in each blank with one word only.unpleasantinform headline replace projectdelay urgently successfully absorb separateI just glanced at the __________. I didn’t have time to read the reports.

The opening of the new subway may be _________for several months.

What a(n) __________woman your colleague is, always complaining about one thing or another, never satisfied!

These e-books are not going to __________the printed books, because many people believe that paper books just feel good in their hands.

答案查题题库