Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;;Autor: JJ
- ;;fecha 03/09/2018
- ;;contrato: opera3: numero, numero, numero -> numero
- ;;proposito: Esta funcion recibe 3 numeros (a,b,c) y retorna a+ b*c
- ;;ejemplos: (operacion3 1 2 3) ->7, (operacion3 2 3 4) -> 14
- (define (operacion3 a b c)
- (+ a (* b c))
- )
- ;;pruebas
- (check-expect (operacion3 1 2 3) 7)
- (check-expect (operacion3 2 3 4) 14)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement