
01/10/2004, 08:38
|
 | | | Fecha de Ingreso: junio-2004 Ubicación: Monterrey NL
Mensajes: 2.390
Antigüedad: 20 años, 7 meses Puntos: 53 | |
int resultado (int x)
{
float numero,sum;
int b=0,c=0;
while (b<x)
{
printf("Dame el valor #%d: \n",b+1);
scanf("%f",&numero);
b++;
sum+=numero;
}
return (sum);
}
ahi esta, asi deve de funcionar correctamente (en teoria funciona, no lo he compilado, pero bueno....) |