#include <iostream>
#include <conio>
int main()
{float
vector1[5],mayor=0,vector3[5],vector2[5] ;
int i, f=8,mayor1=0 , mayor2=0;
gotoxy(19,2);cout<<"INSTITUTO
TECNOLOGICO SUPERIOR HUAQUILLAS";
gotoxy(32,3);cout<<"...LENIN
ZAPATA....";
gotoxy(23,4);cout<<"DETERMINA
DE TRES VECTORES EL MAYOR";
gotoxy(10,6),cout << "PRIMER VECTOR : ";
for ( i=0; i<5; i++)
{ gotoxy(10,f),cin >> vector1[i];
f++;
if(vector1[i] > mayor )
{mayor = vector1[i]; }}
f=8;
gotoxy(30,6),cout << "SEGUNDO VECTOR ";
for ( i=0; i<5; i++)
{ gotoxy(30,f),cin >>
vector2[i];
f++;
if(vector2[i] > mayor1)
{mayor1 = vector2[i]; }}
f=8;
gotoxy(50,6),cout << "TERSER VECTOR ";
for ( i=0; i<5; i++)
{ gotoxy(50,f),cin >>
vector3[i];
f++;
if(vector3[i] > mayor2 )
{mayor2 = vector3[i]; }}
gotoxy(10,15);cout << "DEL
VECTOR 1 EL MAYOR ES : " << mayor << "\n ";
gotoxy(10,17);cout << "DEL
VECTOR 2 EL MAYOR ES : " << mayor1<< "\n ";
gotoxy(10,19);cout << "DEL
VECTOR 3 EL MAYOR ES : " << mayor2 << "\n ";
getch ();
}
No hay comentarios:
Publicar un comentario