0% found this document useful (0 votes)
4 views2 pages

Ictttt

Uploaded by

Karen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Ictttt

Uploaded by

Karen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Operator description

+ Adds two values together.


- Subtracts the second value from the first.
* Multiplies two values together.
/ Divides the first number by the second
DIV Gives the whole number after the first number is divided by the second, i.e. it
ignores any decimals.

MOD Gives the remainder after the first number is divided by the second, Le. how many are
left.

^ Power off

Arithmetic operators
Example 1
Taking two numbers as input and adding them together:
OUTPUT("Enter the first number")
INPUT Num1
OUTPUT("Enter the second number")
INPUT Num2
Total = Num1 + Num2

Arithmetic operators
Example 2
OUTPUT (“enter two numbers”)
INPUT number1
INPUT number2
Subtracting 10 from 20:
Number1 = 10
Number2 = 20
Result = Number2 – Number1
OUTPUT (“the result is”, Result)

Example 5
Finding the whole number after dividing 33 by 7:
Result = DIV(33, 7)

Input 33
Input 7

number1 = 33
number2 = 7
Result = number1/number2
OUTPUT (“the result is”, Result)

You might also like