On Tuesday, 3 September 2019 at 12:55:29 UTC, lili wrote:
Hi guys:

input is two line, first line is a number n and second line is n float point number,
    e.g. 3
         1.1 2.2 3.3
    how use stdin.readf get all number.

u can read array this way too
auto darr = readln.split.map!(x => x.to!double).array;
darr.writeln;

Reply via email to