CDE
This commit is contained in:
parent
518da4a923
commit
764da6cbbb
6144 changed files with 83610 additions and 11 deletions
17
Task/Arithmetic-Integer/D/arithmetic-integer-1.d
Normal file
17
Task/Arithmetic-Integer/D/arithmetic-integer-1.d
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue