Breaking News
yeni film izle hd film seyret film izle

Arithmetic & Integer Expressions in Fortran

Arithmetic Expressions
To know about the Arithmetic Expressions first of all we must should know about Arithmetic Operators which is given below:
Operation Fortran operator
+ Add
Subtract
* Multiply
/ Divide
** Exponentiation
Integer expressions
We know about integers that it have no decimal point. These are expressed as the following rules like:
1) A signed or unsigned integer variable name or an integer constant is an integer expression.
Example:
5, +5, -2, +7, j, -j etc.
2) An integer expression connected by an arithmetic operator to an unsigned integer variable name or an unsigned integer constant is an integer expression.
Example:
– IC * IA +IB
Here IC, IA, IB are unsigned integer variable and -, +, and * are arithmetic operators.
3) An integer expression enclosed in parentheses is an integer expression.
Example:
( -J * K +I) is an integer expression.;
Note: Two arithmetic operators should not occur in succession in an integer expression.
This is wrong to express:
Example:
IC -* IA