# Fortran Expression and I/O statement

## 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: …

## Real & Complex Expressions

Real Expressions There are following rules to express the Real expressions: 1) A signed or unsigned real variable name or real constant is an expression. Example: -A, 3.8, 2.0 etc. 2) A real expression connected by an arithmetic operator to an unsigned real variable name or an unsigned real constant is a real expression. Example: …

## Mixed & Character Expressions

Mixed expressions Mixed expressions in Arithmetic Expression are formed by using different types of integer, real, double precision or complex quantities. Example: Consider an arithmetic expression in which integer and real quantities occurs let I=5 and C= 2.5.This means here I is integer and C is real .If both are added then I + C …

## Relational Logical Expressions in fortran

Relational Logical Expressions are expressed with the help of Relational operators. Relational operators These are the relational operators: Mathematical symbol Meaning Fortran equivalent > greater than .GT. >= greater than or equal to .GE. < less than .LT. <= less than or equal to .LE. = equal to .EQ. <> not equal to .NE. Example: …

## Input Statement In Fortran

Input Statement It is necessary for solving a problem on a digital computer that the required data should be transformed from one of its input unit to its memory and this is done by input statements. Information is provided from several types of input units to its memory unit. A statement consists of one or …

## How to write a simple program in Fortran

As we know computer is a machine which have no mind. It does not understand our language. Computer have own language which converts our input data into its own language. For computer programming in Fortran language each line of the program is written in coding form which is known as Fortran coding form. For writing …

## Output statement In Fortran

The WRITE and PRINT statements are the data transfer output statement. The information from the memory unit is delivered to output unit and then the result or the value or the answer is display on the computer screen. The general form of the output statement is: PRINT*, output-list or WRITE(*,*) output-list output-list is a single expression …

Scroll to Top