martes, 3 de septiembre de 2019

Programa 14

Programa 14

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

int vec[20],x,a;

int main(){
for(int i=0; i<=19; i++){
cout<<"Ingrese el dato"<<endl;
cin>>x;
if(x>35){
vec[a]=x;
a++;
}
}
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