Sunday, January 22, 2012

Arithmetic Operators:

The Arithmetic Operators  are used to perform arthemetic operations on values or numbers. In  GW BASIC the following standard Arithmetic Operators  are used.

Arithmetic Operator

Symbol

Algebraic Exprerssion

BASIC Expression

Addition

+

a+b

a+b

Subtraction

-

a-b

a-b

Multiplication

-

axb

a*b

Division

/

a/b

a/b

Exponent

^

an
a^n

Negation

-

-a

-a

Modulus

MOD

a MOD b
a MOD b
Integral Division

\

a\b

a\b

No comments:

Post a Comment