A source file itself may contain more than one Terminates the range of an individual program unit within a Statements is executed, otherwise the second block ofĮvery program unit must have an END statement which Where s is the label of a statement, e is an integer expression, and i is the symbolic name of an integer variable that has been assigned the label of a statement with the ASSIGN statement. It begins with an initial keyword, may have intermediate keywords, and ends with a termination statement. The general form of a control statement is a block construct. Vlist contains the symbolic names of variables, arrays, array elements, substrings, and implied DO lists clist contains the constants which will be used to provide the initial values for the items in vlist. DATA statements may appear only after the declaration statements in the program unit in which they appear. Variables, substrings, arrays, and array elements are given initial values with DATA statements. INTEGER, PARAMETER :: DP=SELECTED_REAL_KIND(15,307)
INTEGER, PARAMETER :: SP=SELECTED_REAL_KIND(6,37)
INTEGER, PARAMETER :: I8=SELECTED_INT_KIND(18) INTEGER, PARAMETER :: I4=SELECTED_INT_KIND(9) INTEGER, PARAMETER :: I2=SELECTED_INT_KIND(4)
INTEGER, PARAMETER :: I1=SELECTED_INT_KIND(2) SELECTED_REAL_KIND(p,r) p and r are integer SELECTED_INT_KIND(x) x is an integer expression Language features are provided for inquiring about the numeric model and specifying the kind of the data entity. The Fortran 90 concept of kind provides the means for selecting and specifying the numeric model of integer and real data both variables and constants. PRINT *,”Circumference=”,Circumference(r)ĮND PROGRAM Circle Non-Optimized vs.
Simply fortran registration codes pro#
Click Here For Your Free Pro Fortran Evaluation Today!īasic Fortran Overview, Examples & Informationīasic Fortran Overview, Examples & Information Basic F95 Program with Intrinsic Data