Arithmetic/Integer: Difference between revisions

Line 3,646:
print ("~a = " ^ Int.toString (~a) ^ "\n") (* unary negation, unusual notation compared to other languages *)
end</lang>
=={{header|Swift}}==
<lang swift>
let a = 6
let b = 4
 
print("sum =\(a+b)")
print("difference = \(a-b)")
print("product = \(a*b)")
print("Integer quotient = \(a/b)")
print("Remainder = (a%b)")
print("No operator for Exponential")
</lang>
 
=={{header|Tcl}}==