cot 6 and cos 2
DESCRIPTION
testTRANSCRIPT
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