内容发布更新时间 : 2024/11/5 13:07:49星期一 下面是文章的全部内容请认真阅读。
#include
{ /**/ int i ; double k=1.0,s=0;
for (i=1;i<=n;i++) { s+=k/(i*(2*i+1)) ; k=-k; }
return s; /**/ }
void main() { int n;
printf(\ scanf(\
printf(\ getch(); }
#include
if(x<10)
y=sqrt(2.5+cos(x))/(x*sin(x)+3); else y=x*x; return y; /**/ }
void main() { float x; double y; clrscr();
printf(\ scanf(\
y = fun1(x);
printf(\ getch(); }
#include
int bTrue(int a[][4],int n) { /**/ int i, j, t=1;
for(i=0;i void main() { int a[4][4],i,j; int bT; printf(\ for(i=0; i<4; i++) for(j=0; j<4; j++) scanf(\ bT = bTrue(a,4); if( bT == 1 ) printf(\es\\n\ else printf(\ getch(); } #include if(x<100) y=(3*log10(x)-3)/(sin(x)+3); else y=x-100; return y; /**/ } void main() { float x; double y; clrscr(); printf(\ scanf(\ y = fun1(x); printf(\ getch(); } #include float avg=0, max; for(i=0;i max=fabs(a[0]-avg); for(i=0;i if(fabs(a[i]-avg)>max) { max= fabs(a[i]-avg); t = a[i]; } return t; /**/ } void main() { int a[] = {10,22,8,33,17,5,9,13,27}; int i,n = sizeof(a)/sizeof(int); int k; printf(\ for(i=0;i printf(\ \ printf(\ k=fun(a,n); printf(\ getch(); }