Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
13
Task/Arithmetic-Integer/Euphoria/arithmetic-integer.eu
Normal file
13
Task/Arithmetic-Integer/Euphoria/arithmetic-integer.eu
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