Problemas Scheme (Filminas)

Problemas Scheme (Filminas) - Ejercicios de Scheme Elas...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Ejercicios de Scheme Elías Hernández Ramírez – A00798214 Determina si un número es positivo, negativo o cero: > (define (numeroPNZ N) (if (positive? N) "Es positivo" (if (negative? N) "Es negativo" (if (zero? N) "Es cero"))))                           
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Determina qué tipo de triángulo es (isósceles, equilátero o escaleno): > (define (triangulo a b c) (if (= a b c) "Es equilátero" (if (or (and (= a b) (or (< c a) (> c b))) (and (= b c) (or (< b a) (> b a))) (and (= c a) (or (< c b) (> c b)))) "Es isóselces" "Es escaleno")))                 
Background image of page 2
Predicado que determina si 3 lados corresponden a un triángulo y añadir validación a la 
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/12/2010 for the course ITC TC2006 taught by Professor Conant during the Spring '10 term at ITESM.

Page1 / 3

Problemas Scheme (Filminas) - Ejercicios de Scheme Elas...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online