program main implicit none integer :: sum, k sum = 1 do k = 1,19 sum = sum + 3**k end do print*, "sum =", sum end program main
To embed this project on your website, copy the following code and paste it into your website's HTML: