ejercicio en C++

#include <iostream>

using namespace std;

 int  main ()
{
         
          int cantidad,num,f,valor;
          cantidad=0;
          cout<<"Cuantos numeros ingresara";
          cin>>num;
           for(f=1;f <= num;f++)
            {
            cout<<"ingrese el numero";
            cin>>valor;
            if(valor>=10000)
            {
              cantidad=cantidad+1;
              }
                }
            cout<<"Los valores ingresados mayores o iguales a mil son:";
            cout<< cantidad;
            cin.get();
            cin.get();
         
         
           
            }


Share this

Related Posts

Previous
Next Post »