martes, 23 de junio de 2009

el numero menor es????

#include
using namespace std;
int main ()
{
double cantn,num;
int menor;
menor=1000;
cout<<"ingrese cantidad de numeros"<>cantn;
while (cantn>0)
{
cin>>num;
if (num{
menor=num;
}
cantn=cantn-1;
}
cout<<"menor"<system ("pause");
return 0;
}

No hay comentarios:

Publicar un comentario