Expected input:
4
20.0000
5.0000
0.5000
-0.5000
Expected OUTPUT:
20.0000
5.0000
0.5000
-0.5000
The following is my code but its throwing the error:
Crash dump is being written to: erl_crash.dump...done
init terminating in do_boot ()
kilo(0)->
ok;
kilo(N) when N>0->
{ok,[M]}=io:fread("", "~f"),
io:format("~f~n",[M]),
kilo(N-1).
main()->
{ok,[M]}=io:fread("","~d"),
kilo(M).