Unlike a logical IF where the control expression is Boolean and has two branches depending on whether the expression evaluates true or false, the control expression of an arithmetic IF is a numeric expression (such as x+y) and has three branches depending on whether that expression evaluates negative, zero or positive.
In languages that do not provide native support for arithmetic IF (such as C++), we can implement arithmetic IF using logical IF as follows, where z holds the result of the arithmetic expression (such as z=x+y):
if (z<0) {
// negative path
} else if (z==0) {
// zero path
} else {
// positive path
}
BASIC and FORTRAN are computer programming languages.
fortran
FORTRAN is an abbreviation for FORmula TRANslation. It is a computer programming language.
formula translation
Fortran IV was a version of the Fortran programming language developed in the 1960's. It was widely accepted as a standard version of Fortran until the development of Fortran 66 which was itself largely based on Fortran iV.
Robert C. Nickerson has written: 'Instructor's manual for Fundamentals of FORTRAN programming' 'Fundamentals of FORTRAN programming' -- subject(s): FORTRAN (Computer program language) 'Instructor's manual, COBOL programming' 'Fundamentals of programming in BASIC' -- subject(s): BASIC (Computer program language)
Yes.
Tim Ward has written: 'FORTRAN and the art of PC programming' -- subject(s): FORTRAN (Computer program language), Microcomputers, Programming
The first FORTRAN compiler, an optimizing compiler, was delivered in April, 1957.
The first programming language, Fortran, was developed in the 1950s by a team at IBM led by John W. Backus.
Basic, Fortran, and C
C++, Perl, Fortran