
program first integer, parameter : : rkind=8 integer : : i real(kind=rkind) : : a logical : : ltmp i=-10 a=5.Use readable names as much as possible Valid var names: time, my_own_data Invalid names: A$, 3_daysĮxamples Declaration Execution Termination.Variables: values may change during the execution (so why do we need constants? ).Constants: does not change thru’out the execution.

Name can contain up to 31 chars, with combination of alphabets, digits and ‘_’ it must start with an alphabet.I personally use lower case thru’out: pick a style and stick to it!! (or, grep –i can help somewhat).A legacy from F 77 era and a major sore point for modern programmers.Characters are not case sensitive (so ‘write’ is same as ‘WRITE’ or ‘Write’).Treat inline comments seriously (this is your live documentation & 1 st line of help for readers!).Comments can be inserted anywhere (and you are highly encouraged to do so!).

