martes, 5 de noviembre de 2019

Programa 12

#include <stdio.h>
#include <iostream>
using namespace std;

int vec[20], x;

int main(){
system("color F0");
for(int i=0; i<=19; i++){
cout<<"Ingrese el dato"<<endl;
cin>>x;
if(x>35){
vec[i]=x;
}
}
cout<<"Los numeros registrados son:"<<endl;
for(int h=0; h<=19; h++){
cout<<vec[h]<<endl;
}
return 0;
}

No hay comentarios:

Publicar un comentario