Skip to content

Commit af49c7a

Browse files
author
Kiandra Wilson Morris
committed
add do loop to hello world
1 parent 99d8a0d commit af49c7a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

hello-world.f90

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
program main
22
implicit none
3+
integer :: i, x(10)
34
print *, "Hello world"
5+
x = 5
6+
do i = 1, 10
7+
print *, "x(", i,") + i is ", x(i) + i
8+
end do
49
end program main

0 commit comments

Comments
 (0)