Red de conocimientos turísticos - Información de alquiler - Ingrese 10 números enteros desde el teclado para programar.
Ingrese 10 números enteros desde el teclado para programar.
#¿Incluir? & ltstdio.h & gt
int? ¿principal? (no válido)
{
int? a[10],I,j;
int? b=0, c=0, d = 0;
Printf("Ingrese diez números cualesquiera:");
for(I = 0; I<10;i++ )scanf( "%d ", & ampa[I]);
for(j = 0; j & lt10;j++)
{
if (a[ j]>0)?b++;
si (a[j]=0)? c++;
if(a[j]<0)?d++;
}
Printf("***¡Hay %d números positivos! * * * ¡Hay %d números negativos! * * * ¡Hay %d ceros! ”, b, d, c); 0;
}
//El error es:
for(j = 0; j & lt10;j++)
{
si(a[j]& gt;0)?b++;
si(a[j]=0)? c++;
if(a[j]<0)?d++;
}
I, j es indistinguible, ¡error de uso variable!