programs of expression

Expression:

There are four expression
1-Arithmetic expression
2-Relational expression
3-Logical expression
4-Compound expression

1-Arithmetic expression:

There are  5  arithmetic operator which are as follows
Arithmetic operator
Symbol
Example
Sum
+
A+B
Subtraction
-
A-B
Multiplication
*
A*B
Division
/
A/B
Module
%
A%B



there are two types of low and high precedence level .High precedence operators are *,/,% and low precedence operators are +, -

EXAMPLE

OUTPUT

Logical Operator

it is use for compound condition by combining two or more conditions . There are three types of logical operators

Logical operator
Symbol
Example
Not
!
A!
AND
&&
A&&B
OR
 I I




Comments

Popular posts from this blog

Stack

EXTRA INFORMATION ABOUT TECHNOLOGY