Advertisement
Jhanled

Untitled

Sep 3rd, 2018
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 0.34 KB | None | 0 0
  1. ;;Autor: JJ
  2. ;;fecha 03/09/2018
  3. ;;contrato: opera3: numero, numero, numero -> numero
  4. ;;proposito: Esta funcion recibe 3 numeros (a,b,c) y retorna a+ b*c
  5. ;;ejemplos: (operacion3 1 2 3) ->7, (operacion3 2 3 4) -> 14
  6. (define (operacion3 a b c)
  7.   (+ a (* b c))
  8.   )
  9. ;;pruebas
  10. (check-expect (operacion3 1 2 3) 7)
  11. (check-expect (operacion3 2 3 4) 14)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement