Anonymous user
Arithmetic/Integer: Difference between revisions
m
→{{header|AWK}}: Make the comments like the other examples.
(→{{header|UNIX Shell}}: SUSv3 says that $(($x)) and $((x)) are alike, so remove the extra dollar signs.) |
m (→{{header|AWK}}: Make the comments like the other examples.) |
||
Line 188:
print "sub:", $1 - $2
print "mul:", $1 * $2
print "div:", int($1 / $2) #
print "mod:", $1 % $2 #
print "exp:", $1 ** $2
exit }</lang>
|