一、程序设计 共113题 (共计1130分)第1题(10.0分) 题号:390/*-【程序设计】-功能:编写函数求1100中奇数的平方和。结果为166650.000000。-*/#include void wwjt(); float sum(int n)/*Program*/* End */答案:-float s=0;int i;for(i=1;ivoid wwjt(); main() int i,j,s,a33;for(i=0;ivoid wwjt(); int fun(int n)/*Program*/* End */main() int m;printf(Enter m: );scanf(%d, &m);printf(nThe result is %dn, fun(m);wwjt(); void wwjt()FILE *IN,*OUT;int t;int o;int c;IN=fopen(in.dat,r);if(IN=NULL)printf(Read FILE Error);OUT=fopen(out.dat,w);if(OUT=NULL)printf(Write FILE Error);for(c=1;cvoid wwjt(); void fun(int a, int b, long *c) /*Program*/* End */main() int a,b;long c; printf(input a, b:); scanf(%d%d, &a, &b); fun(a, b, &c); printf(The result is: %ldn, c);wwjt(); void wwjt ( ) FILE *rf, *wf ; int i, a,b ; long c ; rf = fopen(in.dat, r) ; wf = fopen(out.dat,w) ; for(i = 0 ; i void wwjt(); int fun(int a,int n)/*Program*/* End */main()int a10=1,3,6,9,4,23,35,67,12,88;int y;y=fun(a,10);printf(y=%dn,y);wwjt();void wwjt()FILE *IN,*OUT;int iIN10,iOUT,i,j;IN=fopen(in.