Page 97 - Computer Genius Class 06
P. 97
Uppercase and lowercase characters are distinct.
Keywords (reserved words) cannot be used as a variable.
Co-founders of Apple, Steve Jobs and Steve Wozniak, in their teenage began their
coding careers.
Performing Operations on Variables
aria le is a storage area hich defines the si e layout range set o operations to e per ormed
on variable.
Once you declare the data types, you will learn to perform the operations on the data types.
Operator: It is a symbol which operates on a value assigned to a variable. Example: +,-, *, \.
Operand: It is a value on which the operator performed operation.
Arithmetic Operators
Arithmetic operation combines two or more numeric expressions by using the arithmetic operators.
The arithmetic operators perform operations such as: addition, subtraction, multiplication, division,
and modulus. In the table given below, we are taking, value of variable a= 10, and of b=30.
Operation Symbol Description Example
Addition + Adds one operand to the other a+b= 40
Subtraction - u tracts second operand rom the first a-b= 20
Multiplication * Multiplies one operand by the second a*b= 300
Division / i ides first operand y the second b/a= 3
Modulus % i ides the first operand y the second and b%a= 0
returns the remainder
Increment ++ Increases the integer value by 1 a++ = 11
Decrement -- Decreases the integer value by 1 b-- = 29
Assignment operators
An assignment operator assigns a new value to a variable.
In the table given below, we are taking, value of variable a=10, and b=30.
More on MakeCode Arcade 95

