Fortran – If-then-else construct
In this guide, we will discuss Fortran if-then-else construct. An if… then statement can be followed by an optional else statement, which executes when the logical expression is false. Syntax > The basic syntax of…
In this guide, we will discuss Fortran if-then-else construct. An if… then statement can be followed by an optional else statement, which executes when the logical expression is false. Syntax > The basic syntax of…
In this guide, we will discuss Fortran if-then construct. An if… then statement consists of a logical expression followed by one or more statements and terminated by an end if statement. Syntax The basic…
In this guide, we will discuss Fortran Decisions. Decision making structures require that the programmer specify one or more conditions to be evaluated or tested by the program, along with…
Operators precedence determines the grouping of terms in an expression. This affects how an expression is evaluated. Certain operators have higher precedence than others; for example, the multiplication operator has…
In this guide, we will discuss Fortran Logical Operators. The following table shows all the logical operators supported by Fortran. Assume variable A holds .true. and variable B holds .false. , then − OperatorDescriptionExample.and.Called…
In this guide, we will discuss Fortran Relational Operators. The following table shows all the relational operators supported by Fortran. Assume variable A holds 10 and variable B holds 20, then − OperatorEquivalentDescriptionExample==.eq.Checks if…
In this guide, we will discuss Fortran Arithmetic Operators. The following table shows all the arithmetic operators supported by Fortran. Assume variable A holds 5 and variable B holds 3 then − OperatorDescriptionExample+Addition Operator,…
In this guide, we willl discuss Fortran Operators. An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. Fortran provides the following types of…
In this guide, we will discuss Fortran Constants. The constants refer to the fixed values that the program cannot alter during its execution. These fixed values are also called literals. Constants…
In this guide, we will discuss Fortran Variables. A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable should have a…