#define N 5
#include<stdio.h>
#include<math.h>
void main()
{
int i,a;
float b,c,s[N],s1=0;
for(i=0;i<N;i++)
{
printf("input a,b,c:");
scanf("%d,%f,%f",&a,&b,&c);
s[i]=a*b*a*b/(c*c);
s1+=s[i];
}
s1=sqrt(s1);
printf("the answer is:%f",s1);
getch();
}这才是你想实现的程序吧?