cot 6 and cos 2

4
COS 2 COT 6 Operators = is used to assign values. + is used to add values. The assignment operator = is used to assign values to variables. The arithmetic operator + is used to add values together. Example Assign values to variables and add them together: y=5; z=2; x=y+z; Arithmetic Operators + Addition x=y+2 - Subtraction x=y-2 * ultiplication x=y*2 ! "ivision x=y!2 # odulus $division remainder% x=y#2 ++ &ncrement x=++y x=y++ -- "ecrement x=--y x=y-- Comparison and Logical Operators 'omparison operators are used in logical statements to determine e(uality or di))erence bet een variables or values. = not e(ual ljbcaste

Upload: tara-marie-robinson-white

Post on 05-Nov-2015

242 views

Category:

Documents


0 download

DESCRIPTION

test

TRANSCRIPT

COS 2

COT 6

Operators

= is used to assign values.

+ is used to add values.

The assignment operator=is used to assign values to variables.

The arithmetic operator + is used to add values together.

Example

Assign values to variables and add them together:

y=5;z=2;x=y+z;

Arithmetic Operators

+Additionx=y+2

-Subtractionx=y-2

*Multiplicationx=y*2

/Divisionx=y/2

%Modulus (division remainder)x=y%2

++Incrementx=++y

x=y++

--Decrementx=--y

x=y--

ComparisonandLogical OperatorsComparison operators are used in logical statements to determine equality or difference between variables or values.!=not equal

!==not equal (different value or different type)

>greater than

=greater than or equal to