|STOP and END Statements|
This statement may be written whenever it is necessary to stop executing statements in a program. There is normally a STOP at the end of every program.
To inform the compiler that the physical end of the source program has been reached and that no more programs statements follows.
Writing and Running a Program
Sample FORTRAN code
C SAMPLE PROGRAM - AREA OF A TRIANGLE C WRITE(6,10) 10 FORMAT(/,' ENTER THREE NUMBERS') READ(5,25) A, B, C 25 FORMAT(3F4.2) S=(A+B+C)/2.0 AREA=SQRT(S*(S-A)*(S-B)*(S-C)) WRITE(6,17) AREA 17 FORMAT(' AREA OF THE TRIANGLE=',F8.3) STOP END