r:=2.1;
while r <> 4.3 do
begin
r:= r + 0.1;
writeln(r);
end;
Where the r is real type, but it just won't work and prints ´r´ in scientific notification.
I dont know, maybe this is compiler rounding error or something like that I am beginner with pascal (actually forced to work with it what I honestly hate)
the output is
Ideone link: http://ideone.com/fY5AYM