externary1.d
+10 · 1 file changed
-
externary1.d+10 −0
@@ -0,0 +1,10 @@ +import std.stdio; +import std.conv; + +void main() +{ + int value; + write("Enter ammount negative or positive: "); + readln(" %s", &value); + writeln(value < 0 ? " lost" : to!string(value)," gained"); +}