9/22/2023 0 Comments Fortran program for area of circle![]() ![]() 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. Basic Fortran Overview, Examples & Informationīasic Fortran Overview, Examples & Information Basic F95 Program with Intrinsic Data ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |