上古
fortran
program hello
integer:i
for i-=1, 5
print ("hello")
end
AGOL 60
begin
integer i;
for I:=1 until i<5 do
begin
outprint("hello");
end
AGOL 68
BEGIN
INT i;
FOR i:=1 FROM 1 TO 5 DO
Pprint("hello");
OD
for i=… TO …
BCOL
start= VALOF
LET i=?
DO i= 1TO 5
{print"hello"}
pscal
program hello
var
i: integer;
for i:= 1 to 5
writeln('hello');
end
basic
for i=1 to 5
peint "hello"
nnext
for i in …
ada
procedure hello is
i in1..5 loop
end loop;
Python
for iin range(1, 6):
peint "hello"
Ruby
for in 1..5
puts "hello"
lua
for i= i=1, 5
print "hello"