Clips Ejercicios
-
Upload
somx-duraznho-di-manzanitha -
Category
Documents
-
view
232 -
download
1
description
Transcript of Clips Ejercicios
(deffunction cua ( ?n ) (* ?n ?n ))
(deffunction areaci( ?n) (* (pi)(cua ?n )))
Calcular la hipotenusa
Calcular la hipotenusa declarando dos funciones independientes
Calificacin de alumnos(deffunction cal(?c)(if (> ?c 11) then(printout t "Esta aprobado" ?c " Good" crlf))(if (< ?c 10.5 ) then(printout t "Tu muy mal" ?c " mal chavo " crlf))(if (= ?c 10.5 ) then(printout t "medioaprobado " ?c "pesimo pesimo" crlf)))
MAYOR DE EDAD (deffunction edad(?e)(if (> ?e 18) then(printout t "Eres mayor de edad " ?e " :c " crlf))(if (< ?e 18 ) then(printout t "Jovenazo " ?e " :D" crlf)))
Comparacin de edades
(deffunction edad( ?e)(if ( < ?e 5) then(printout t "es bebe " ?e crlf) )(if (and ( < ?e 13 ) (> ?e 5 )) then(printout t "chico " ?e crlf)))