Next: Variables
Up: CS101 Lecture 8
Previous: Fortran Language Features
- Free source form (can start line anywhere)
- Blanks separate keywords, names etc.
- Uppercase/Lowercase is same
- After ``!'' anything on that line is comment.
- Maximum 132 chars per line
- Continue on next line by putting ``SPMamp;'' (ampersand) at end
- Use ``;'' to put more than 1 statement on line
PrOgRam DeMO1 program demo2 PROGRAM demo3
! comment line !COMMENT !coMment
write (*,*) & Integer :: i,j write(*,*) 'hello'
'this line' & i = 2; j = i + 1 End program demo3
'next line' write (*,*) i+j, i, j
End PROGRAM demo1 End prorgam demo2
G. Sivakumar
2000-08-16