September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
14
Task/Arithmetic-Integer/Ol/arithmetic-integer-1.ol
Normal file
14
Task/Arithmetic-Integer/Ol/arithmetic-integer-1.ol
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
(define a 8)
|
||||
(define b 12)
|
||||
|
||||
(print "(+ " a " " b ") => " (+ a b))
|
||||
(print "(- " a " " b ") => " (- a b))
|
||||
(print "(* " a " " b ") => " (* a b))
|
||||
(print "(/ " a " " b ") => " (/ a b))
|
||||
|
||||
(print "(quotient " a " " b ") => " (quot a b)) ; same as (quotient a b)
|
||||
(print "(remainder " a " " b ") => " (rem a b)) ; same as (remainder a b)
|
||||
(print "(modulo " a " " b ") => " (mod a b)) ; same as (modulo a b)
|
||||
|
||||
(import (owl math-extra))
|
||||
(print "(expt " a " " b ") => " (expt a b))
|
||||
Loading…
Add table
Add a link
Reference in a new issue