I'm trying out Fortran, and when I run my code
program main
implicit none
integer :: somevar
somevar = 5
print*,"why is there so much spacing between this and",somevar
end program main
It gives such output:
$ gfortran main.f90 -o main && ./main
why is there so much spacing between this and 5
I found this: How to get rid of unwanted spacing in Fortran's print output? But I tried to implement the answer, and it didn't work.
How do you fix this spacing problem?