Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
11
Task/Arithmetic-Integer/TAV/arithmetic-integer.tav
Normal file
11
Task/Arithmetic-Integer/TAV/arithmetic-integer.tav
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
a, b =: 6, 4
|
||||
print 'a + b =', a + b
|
||||
print 'a - b =', a - b
|
||||
print 'a * b =', a * b
|
||||
print 'a // b =', a // b \ integer division is %%
|
||||
print 'a %% b =', a %% b \ usual modulus
|
||||
print 'a ^ b =', a ^ b
|
||||
qr =: a // b, a %% b \ operator /% rarely used, not implemented
|
||||
print 'a /% b =', join qr by ','
|
||||
r =: a / b \ rational result
|
||||
print r, r.num, r.den \ number, numerator, denominator
|
||||
Loading…
Add table
Add a link
Reference in a new issue