Control Statement

Fortran Expressions

Fortran Expressions We have already discussed about constants, integers, variables now we will study about the Fortran Expressions . What is Expression? Expressions are the statements formed by combination of operators and operands. Example: 1) a – b // it is an arithmetic expression in which a& b are operands and ‘-‘ is subtraction  operator. …

What is control statement in programming language?

Control Statement If a program is executed in normal flow then there is no problem but when some conditions are given then control commands helps us to make program execution easy. There are fourteen types of control statements: Arithmetic IF Logical IF Block IF ELSE IF ELSE END IF Unconditional GO TO Computed GO TO …

If…Else statement

Types of If statement If statement in Fortran is used for decesion making. Depending upon conditions we can use any of the following IF statements in our FORTRAN program : 1) Arithmetic IF statement If in a program the condition is given as positive, negative or zero, then the arithmetic IF statement is used to …

GO TO And DO statements

GO TO Statement 1) Unconditional GO TO statement Unconditional GO TO statement is used to jump from one statement number to the other in that program. The general form of an unconditional GO TO statement is: GO TO n where n is the statement number of an executable statement. Blanks between GO and TO are …

CONTINUE & STOP statements

CONTINUE Statement The general form of a CONTINUE statement is: CONTINUE Execution of a CONTINUE statement has no effect. STOP Statement Stop Statement is used as a command to stop the execution of a program. You can say that this statement is the logical end of a program. The general form of a STOP statement …

PAUSE And END statements

PAUSE Statement The general form of a PAUSE statement is: PAUSE [n] where n is a string which should not be more than five digits or it may be character constant. END Statement Every program must have an END statement which must be written at the end of the program. The general form of an END statement …

Scroll to Top