Ejercicio C++ 11/09/2017

#include <iostream>

using namespace std;

int main()
{
    int cantidad, num, f, valor;
    cantidad=0;
    cout<<"cuantos numeros ingresera:";
    cin>>num;
    for(f=1;f<=num;f++)
    {
      cout<<"ingrese el numero:";
      cin>>valor;
      if(valor>=1000)
      {
        cantidad=cantidad+1;
      }
       
    }
    cout<<"los valores ingresador mayores o iguales a 1000 son:";
    cout<<cantidad;
    cin.get();
    cin.get();
}

Share this

Related Posts

Previous
Next Post »