miércoles, 20 de julio de 2016

MAYOR DE 5 NUMEROS

#include <stdio.h>
#include <conio.h>
#include <iostream.h>
#include <math.h>
void main ()
{
int num ,mayor = 0 , f=10 ;
gotoxy(19,3);cout<<"INSTITUTO TECNOLOGICO SUPERIOR HUAQUILLAS";
gotoxy(30,4);cout<<"...LENIN ZAPATA...";
gotoxy(18,5);cout<<"IMPRIME EL NUMERO MAYOR";
gotoxy(5,8);cout<<"INGRESE 5 NUMEROS: ";
 for(int i = 1 ; i<= 5 ; i++)
 {
  gotoxy(3,f);cout<<"NUMERO "<< i<<": ";cin>> num;
   if(num > mayor)
  mayor = num;
  f++;
 }
 gotoxy(35,10);cout<<"RESULTADO:";
 gotoxy(35,12);cout<<"\1 El numero mayor es: " << mayor;
 getch();

}

No hay comentarios:

Publicar un comentario