Programming-Idioms

History of Idiom 2 > diff from v75 to v76

Edit summary for version 76 :
New Fortran implementation by user [tkoenig]

Version 75

2019-09-26, 16:48:22

Version 76

2019-09-26, 16:49:08

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Illustration

Idiom #2 Print Hello 10 times

Loop to execute some code a constant number of times

Illustration
Code
program main
  implicit none
  integer :: i
  do i=1,10
    write (*,'(A)') "Hello"
  end do
end program main