# Answer to Question #37515 in Delphi | Pascal for Abdur

Question #37515

Hello

I have an array of about 8760 numbers. i need to write it in one line in delphi.

if i use the writeln command like this

writeln(array[1],array[2]....so on) it gets really really long. is their a shorter way.

please help.

thanks

I have an array of about 8760 numbers. i need to write it in one line in delphi.

if i use the writeln command like this

writeln(array[1],array[2]....so on) it gets really really long. is their a shorter way.

please help.

thanks

Expert's answer

program n1;

const n=8760;

var i:integer;

arr:array[1..n] of real;

begin

// fill array 'arr'

for i:=1 to n do write(arr[i]);

end.

const n=8760;

var i:integer;

arr:array[1..n] of real;

begin

// fill array 'arr'

for i:=1 to n do write(arr[i]);

end.

## Comments

## Leave a comment