scan
..Root.console.scan
Reads new arguments’ values from the standard input.
(Similar concept to C’s scanf
, types of arguments are used insted of formatter.)
Parameters: any number of variables of type Int
, String
, Boolean
or Double
Return value: reference to this function
NativeCallable
, Callable
import("console");
auto a.=(Int());
auto b.=(Double());
auto c.=(String());
console.scan(a, b, c);
console.writeLine("a: ", a, "\nb: ", b, "\nc: ", c);