Sha256: 67519922b6351b6a5c1ce5aae77f5be2d884988ee3a0a30e814927aedc6f7e53
Contents?: true
Size: 434 Bytes
Versions: 10
Compression:
Stored size: 434 Bytes
Contents
import std.stdio, std.string, std.conv; void main() { int a = 10, b = 20; try { a = readln().strip().to!int(); b = readln().strip().to!int(); } catch (StdioException e) {} writeln("a = ", a, ", b = ", b); writeln("a + b = ", a + b); writeln("a - b = ", a - b); writeln("a * b = ", a * b); writeln("a / b = ", a / b); writeln("a % b = ", a % b); writeln("a ^^ b = ", a ^^ b); }
Version data entries
10 entries across 7 versions & 1 rubygems