Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Arithmetic-Integer/Frink/arithmetic-integer-1.frink
Normal file
7
Task/Arithmetic-Integer/Frink/arithmetic-integer-1.frink
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[a,b] = input["Enter numbers",["a","b"]]
|
||||
ops=["+", "-", "*", "/", "div" ,"mod" ,"^"]
|
||||
for op = ops
|
||||
{
|
||||
str = "$a $op $b"
|
||||
println["$str = " + eval[str]]
|
||||
}
|
||||
7
Task/Arithmetic-Integer/Frink/arithmetic-integer-2.frink
Normal file
7
Task/Arithmetic-Integer/Frink/arithmetic-integer-2.frink
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
10 + 20 = 30
|
||||
10 - 20 = -10
|
||||
10 * 20 = 200
|
||||
10 / 20 = 1/2 (exactly 0.5)
|
||||
10 div 20 = 0
|
||||
10 mod 20 = 10
|
||||
10 ^ 20 = 100000000000000000000
|
||||
Loading…
Add table
Add a link
Reference in a new issue