If exceeds zero then Compute and print two distinct real roots. Otherwise, if is equal to zero then Compute and print two coincident real roots. In step 3, the program must test conditions such as ' exceeds zero'. It may not be assigned a value of any other type. For the present, we shall consider only relationships between arithmetic expressions.
Relational operators have lower precedence than arithmetic operators.
Therefore, in evaluating a relational expression, the arithmetic expressions are evaluated before the comparison indicated by the relational operator is made. It is often necessary to express a condition which combines two or more logical expressions. For example, to check that the value of a variable lies within a given range, we should have to check that it is greater than the lower limit AND less than the upper limit. The logical operators and their meanings are shown below. There is one further logical operator .NOT. , which unlike the others, takes only one operand, which it precedes.