jueves, 29 de octubre de 2020

1.-Mi programa

 

(en este llamaremos ala clase minimax para ejecutar)

#jessica ponce

from minimax import min,max


a=int(input("ingrese  un numero:"))

b=int(input("ingrese un numero:"))

print("numero menor es:",min(a,b))

print("numero mayor es:",max(a,b))

----------------------------------------------------------------------------------------------

#minimax

def min(a,b):

    if a<b:

        return a

    else:

        return b

def max(a,b):

    if a>b:

        return a

    else:

        return b


---------------------------------------------------------------------------------------------

PANTALLA DE SALIDA






No hay comentarios:

Publicar un comentario