#include <conio.h>
#include <iostream.h>
#include <math.h>
void main ()
{
int num
,mayor = 0 , menor = 1000 , multi = 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, MENOR Y MULTIPLOS DE 5";
gotoxy(5,8);cout<<"INGRESE
10 NUMEROS: ";
for(int i = 1 ; i<= 10 ; i++)
{
gotoxy(3,f);cout<<"NUMERO "<< i<<":
";cin>> num;
if(num
% 5 == 0)
{multi = multi + 1;
gotoxy(15,f);cout<<" <= Multiplo.";}
if(num > mayor)
mayor = num;
if(num < menor)
menor = num;
f++;
}
gotoxy(35,10);cout<<"RESULTADOS:";
gotoxy(35,12);cout<<"\1 El numero
mayor es: " << mayor;
gotoxy(35,13);cout<<"\2 El numero
menor es: " << menor;
gotoxy(35,14);cout<<"\3 Multiplos
ingresados: " << multi;
getch();
}
No hay comentarios:
Publicar un comentario