#include
<iostream>
#include <conio>
int main()
{
float vector1[5];
int mayor = 0, f = 8;
gotoxy(19,3);cout<<"INSTITUTO
TECNOLOGICO SUPERIOR HUAQUILLAS";
gotoxy(32,4);cout<<"...LENIN
ZAPATA....";
gotoxy(27,5);cout<<"VECTOR,
MAYOR DE 5 NUMEROS";
gotoxy(10,7);cout << " Llene el
vector : ";
for ( int i=0; i<5; i++)
{gotoxy(10,f);cin >> vector1[i];
f++;
}mayor = vector1[0];
for ( int i=0; i<5; i++)
{
if(vector1[i] > mayor )
{mayor = vector1[i]; }
}
gotoxy(10,15);cout
<< "EL MAYOR DE LOS VECTORES
ES: " << mayor ;
getch ();
}
No hay comentarios:
Publicar un comentario