Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Built in functions

Mathematical functions
INT
INT 3.8 3
5
many 16
DIV how the
in
DIV 16 5 are
3 5s
MOD all 16
remove the
MOD 16,5 from
I
Mop 26 6
2

ROUND
d
ROUND 7.38421
7.38
RANDOM a
generates number
RANDOMC random 021
between a decimal
place
generate a random number
between 0 10
RANDOMC to
functions
String handling
d
text
LENGTH
LENGTH Hello world
11
UPPER U CASE

UPPER hello HELLO


UCASE hello

LOWER I L CASE
LOWER HELLO hello
CASE C HELLO
SUBSTRING gstatigaracters

SUBSTRING Hello
1,2
I
Egghead
He
SUBSTRING Hello 4,2

til
OUTPUT SUBSTRING Hello 2

Value INTE
TEEJ
let the user input a search name
Search the Name list for that
array
if found or
name
output not
assume there are 10 unique names
user
SearchMere
INPUT SearchName YameIst
Found FALSE
Conte o I

WHILE Found_FALSE AND Canto Do


Conte Contel
If SearchName NameList Cont
THEN
Found TRUE
OUTPUT found
END IF
ENDWHILE
If Found FALSE
THEN
OUTPUT Notfound
ENDIF
REPEAT Farrey

UNTIL Found TRUE OR Cat


10

You might also like