Jump to content

Loops/While: Difference between revisions

added Fortran
No edit summary
(added Fortran)
Line 45:
repeat drop ;
1024 halving
 
=={{header|Fortran}}==
{{works with|Fortran|90 and later}}
INTEGER :: i = 1024
DO WHILE (i > 0)
WRITE(*,*) i
i = i / 2
END DO
 
=={{header|Java}}==
179

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.