Run Fortran online — GFortran, Fortran 2018 standard, browser-hosted.
Fortran is not dead — it is the workhorse of scientific computing and every serious HPC system runs kilotons of it. Modern Fortran (2003 → 2018) has object-orientation, coarrays for parallelism, and C interop.
ls-judge compiles Fortran 2018 with GFortran inside a Firecracker microVM. Multi-file projects work.
Clicking "Run now" opens the playground with this exact code and a matching test case pre-loaded — passes on first Run.
program solution
implicit none
integer :: n
read(*,*) n
write(*,'(i0)') n * 2
end program solution
21
42