Robotics 10

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

ROBOTICS 10

NAME: Trixie Lou L. Magallanes


SECTION: Platinum
TEACHER: Arfe Joy B. Sudario

MATH OPERATORS
+ Adds two operands.
- Subtracts second operand from the first.
* Multiplies both operands.
/ Divides numerator by de-numerator.
% Modulus Operator and remainder of after an integer division.
^ Binary XOR Operator copies the bit if it is set in one operand but not both.

LOGIC OPERATORS
== Checks if the values of two operands are equal or not. If yes, then the
condition becomes true.
!= Checks if the values of two operands are equal or not. If the values are not
equal, then the condition becomes true.
&& Called Logical AND operator. If both the operands are non-zero, then the
condition becomes true.
|| Called Logical OR Operator. If any of the two operands is non-zero, then
the condition becomes true.

COMPARISON OPERATORS
== Checks if the values of two operands are equal or not. If yes, then the
condition becomes true.
> Checks if the value of left operand is greater than the value of right
operand. If yes, then the condition becomes true.
< Checks if the value of left operand is less than the value of right operand. If
yes, then the condition becomes true.
!= Checks if the values of two operands are equal or not. If the values are not
equal, then the condition becomes true.
<= Checks if the value of the left operand is less than or equal to the value of
right operand. If yes, then the condition becomes true.
>= Checks if the value of the left operand is greater than or equal to the value
of right operand. If yes, then the condition becomes true.

SYNTAX
; Tells that the current statement has been terminated and other statements
following are new statements.
{} Used to signify the start and end of a series of statements
// This allows narrative on only one line at a line.
/* */ Used for large text description of code or to comment at chunks of code
while debugging applications.

You might also like