Sha256: 3954c7374454ee25cafbfdfd69e44e7c1862c6c8a1de3293be2ee6c377098295
Contents?: true
Size: 316 Bytes
Versions: 10
Compression:
Stored size: 316 Bytes
Contents
program arithmetic(input, output) var a, b: integer; begin readln(a, b); writeln('a+b = ', a+b); writeln('a-b = ', a-b); writeln('a*b = ', a*b); writeln('a/b = ', a div b, ', remainder ', a mod b); writeln('a^b = ',Power(a,b):4:2); {real power} writeln('a^b = ',IntPower(a,b):4:2); {integer power} end.
Version data entries
10 entries across 7 versions & 1 rubygems