3 ms·
You might want to check this with a compiler. program example; var i: integer; x: real; y: real; begin for i := 0 to 116000-1 do
by compressedgas 5y ago
You might want to check this with a compiler.
program example;
var
i: integer;
x: real;
y: real;
begin
for i := 0 to 116000-1 do begin
x := i;
y := (x*4)/2.71;
println(x, y)
end
end.
The difference to note is that the Pascal FOR loop is end inclusive that is it is a closed interval rather than the half open interval that Python uses for its range.
- camillomiller 5y agoThanks, you guys are awesome