38=2,-9=3,
所给数据中无理数有:6,-π共两个,
故选C.
(),she is the sort of woman to spread sunshine to people through her smile.
A. Shy and cautious
B. Sensitive and thoughtful
C. Honest and confident
D. Lighthearted and optimistic
请补充函数fun(),该函数的功能是计算下面公式SN的值:
例如:当N=50时,SN=71.433699。 注意:部分源程序给出如下。 请勿改动主函数main和其他函数中的任何内容,仅在函数fun()的横线上填入所编写的若干表达式或语句。 试题程序: #include<conio.h> #include<stdio.h> double fun(int n) { double s=1.0,S1=0.0; int k; for( 【l】 ;k<=n;k++) {s1=s; 【2】 ; } return 【3】 ; } main() { int k=0; double S; clrscr(); printf("\nPlease input N="); scanf("%d",&k); s=fun(k); printf("\nS=%lf",s); }