Loops (do)
Numeric loop with do (end value INCLUDED) and accumulating the sum.
Simple enough for a 5-year-old to understand
do loop
do i = 1, 5 → from 1 to 5 (BOTH included). Different from other languages!
program h integer :: i, t t = 0 do i = 1, 10 t = t + i end do print *, tend program h