Arithmetic/Integer: Difference between revisions

Added Dyalect programming language
m (→‎{{header|Groovy}}: cosmetic changes)
(Added Dyalect programming language)
Line 1,220:
PrintLn(Format('%d mod %d = %d', [a, b, a mod b]));
PrintLn(Format('%d ^ %d = %d', [a, b, Trunc(Power(a, b))]));</lang>
 
=={{header|Dyalect}}==
 
{{trans|Swift}}
 
Dyalect has no operator for exponential.
 
<lang Dyalect>const a = 6
const b = 4
print("sum =\(a+b)")
print("difference = \(a-b)")
print("product = \(a*b)")
print("Integer quotient = \(a/b)")
print("Remainder = (a%b)")</lang>
 
=={{header|E}}==
Anonymous user