Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
13
Task/Arithmetic-Integer/Euphoria/arithmetic-integer.euphoria
Normal file
13
Task/Arithmetic-Integer/Euphoria/arithmetic-integer.euphoria
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
include get.e
|
||||
|
||||
integer a,b
|
||||
|
||||
a = floor(prompt_number("a = ",{}))
|
||||
b = floor(prompt_number("b = ",{}))
|
||||
|
||||
printf(1,"a + b = %d\n", a+b)
|
||||
printf(1,"a - b = %d\n", a-b)
|
||||
printf(1,"a * b = %d\n", a*b)
|
||||
printf(1,"a / b = %g\n", a/b) -- does not truncate
|
||||
printf(1,"remainder(a,b) = %d\n", remainder(a,b)) -- same sign as first operand
|
||||
printf(1,"power(a,b) = %g\n", power(a,b))
|
||||
Loading…
Add table
Add a link
Reference in a new issue