Advertisement
Davilez42

funcion de resta

Dec 7th, 2020 (edited)
1,396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Racket 0.50 KB | None | 0 0
  1. ;Autor: Jose david Suarez
  2. ;fecha:07/12/20
  3. ;contrato:resta2: a,b->numero
  4. ;funcion: esta funcion suma a y b
  5. ;Ejemplos (resta2  5  4)->1 (resta 10  5)->5
  6. (define(resta2 a b )(- a b))
  7. ;pruebas
  8. (check-expect (resta2 5 4)1)
  9.  
  10.  
  11.  
  12. ;Autor: Jose david Suarez
  13. ;fecha:07/12/20
  14. ;contrato:Multiplicacion5: a , b->numero
  15. ;funcion: esta funcion multiplica a y b
  16. ;ejemplo: (multiplicacion5 5 2 4 5 3 5)->600
  17. (define(multiplicacion5 x y z w n )(* x y z w n))
  18. ;pruebas
  19. (check-expect (multiplicacion5 2 4 5 3 5)600)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement