I have minimum knowledge about programming but would like advice on how to run a .f file available from a repository. Gathering that the .f file belongs to the Fortran language. I tinkered with it using Silverfrost FTN95, which was able to open the file and execute the code. The code is meant to perform computations, say, a*b+c=d. When executed, I was asked to input the values of the variables (of say a, b, and c). There was no result shown whatsoever and I was only prompted to press enter to end the program. I am not sure if the values were entered the wrong way, or is FTN95 not compatible with the particular .f file.
PROGRAM TEST
PRINT *, "FORTRAN77 is greeting you"
END PROGRAM TEST
Be sure each line starts at column 7 (i.e. keep six empty spaces ahead of each line; one of the conventions of old FORTRAN77 if there is no leading label, nor GO TO). If the instructions start earlier, you won’t obtain an executable later. To prevent this mistake, the plato editor will highlight the character in red which is “too early” in this line. Then Build → start run (or Ctrl + F5) to compile and run the executable; wait for the disappearance of the splash screen to get
FORTRAN77 is greeting you
Press ENTER to close window...
If you don’t press the enter key now you won’t be able to compile, nor run the program anew.