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
|
EXAMPLE
OUTPUT
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
|
|
|
Comments
Post a Comment