![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
16/06/2011, 19:16
|
| | Fecha de Ingreso: junio-2011
Mensajes: 1
Antigüedad: 13 años, 7 meses Puntos: 0 | |
C++ adyudenmeeeeeeeeeeeeeeeeeeeeeeeeeeeeee #include <iostream.h>
#include <conio.h>
int main()
{
int edades[8] = {25,40,30,10,32,15};
for (int x =0; x<6;x++)
{
if (edades[x] <=20)
cout<<edades[x]<<" ";
}
cout<<"\n";
for (int x=0;x<6;x++)
{
if ((edades[x] <=30)&&(edades[x]>20))
cout<<edades[x]<<" ";
}
cout<<"\n";
for (int x=0;x<6;x++)
{
if ((edades[x] <=40)&&(edades[x]>30))
cout<<edades [x]<<" ";
}
getch();
}
necesito saber
en terminos generales que realiza
y como se desplegaria el resultado en la pantalla si llegara a ejecutar este programa
gracias de antemano
urgente estoy en prueba xD |