问题 多项选择题

printf("The result is:%f\n " , s);

答案

参考答案:float fun(int n)
{
int i,sA=0;
float s=0.0;
for(i=A;i<=n;i++)
{sA=sA+i; /*求每一项的分母*/
s=s+A.0/sA; /*求多项式的值*/
}
return s;
}

解析: 本题中用s1来表示式中每一项的分母,而每一项的分母都是其前一项分母加项数。注意由于s1定义成一个整型,所以在s=s+1.0/s1中不能把1.0写成1。

单项选择题
单项选择题

Looking back on my childhood, I am convinced (1) naturalists are born and not made. Although we were all brought (2) in the same way, my brothers and sisters soon gave up their pressed flowers and insects. (3) them, I had no ear (4) music and languages, I was not an early reader and I could not do mental arithmetic.Before World War I we (5) our summer holidays in Hungary. I have only the memory of the house we lived (6) , of my room and my toys. I can hardly (7) clearly the large family of grandparents, aunts, uncles and cousins who gathered (8) door. But I do have a clear memory of the dogs, the farm (9) , the local birds and, (10) all, the insects.I am a (11) , not a scientist. I have a p (12) of the natural world, and my enthusiasm has led me into varied investigation. I love discussing my favorite topics and enjoy (13)  the midnight oil  (14)  reading about other people’s observations and discoveries. Then  (15)  happens that brings these observations together  (16)  my conscious mind. Suddenly you fancy (想象), you see the answer  (17)  the riddle, and books, of which some might honor with the title of scientific research.But curiosity, a keen eye, a good memory and enjoyment of the animal and plant world do not make a scientist; one of the outstanding and essential  (18)  required is self-discipline, a quality I lack. A scientist requires not only  (19)  but also hard training, determination and a goal. A scientist, up to a point, can be made. A naturalist is  (20) . If you can combine the two, you get the best of both worlds.

 

第(15)空应选择()

A.somewhat

B.someone

C.somewhere

D.something