![]() Normal output will be one line printed with A, B, C, and AREA. If one of the input values is zero, then the program will end with an error code of "1" in the job control card listing following the execution of the program. Some compilers also offer free form source by using a compiler flagĪrea Of a Triangle program Simple Fortran II program If errors are produced when you compile your FORTRAN code, first check the column alignment. the line-length may be limited to 72 characters (derived from the 80-byte width of a punch-card, with last 8 characters reserved for (optional) sequence numbers).continuation lines must have a non-blank character in column 6.statement labels must occur in columns 1-5.comments must begin with a * or C or ! in column 1.NOTE: Before FORTRAN 90, most FORTRAN compilers enforced fixed-format source code, a carryover from IBM punch cards 4.3 Dynamic memory allocation and arraysįORTRAN II, IV, and 77 compilers.3.3 FORTRAN 90 program to find the area of a triangle.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |