amphora_A = 8
amphora_B = 6
amphora_A = amphora_A + amphora_B
amphora_C = amphora_A + amphora_B
key = amphora_C / 2
IF amphora_A < amphora_B THEN
key = key + 50
ELIF amphora_A > amphora_B THEN
key = key * 6
ELSE
key = key - 10
END IF
OUTPUT key
#The Great Pyramid of Giza has 205 steps
steps = 205
FOR i FROM 1 to 20
steps = steps - 10
NEXT i
key = steps ^ 2
OUTPUT key
/* ----------------------------------
Help:
^ is the exponentiation operator:
a^b means a to the power of b.
-----------------------------------*/
#The Nile is 6,650 km long
#The Amazon is 6,400km long
nile = 6650
amazon = 6400
IF nile >= amazon THEN
key = (nile - amazon) / 2
ELSE:
key = (amazon - nile) / 5
END IF
OUTPUT key
key = 30
FOR i FROM 1 TO 5
key = key + i
NEXT i
OUTPUT key
key = 20
FOR i FROM 1 TO 6
FOR j FROM 1 TO 7
key = key + 1
NEXT j
NEXT i
OUTPUT Key
FUNCTION getVolumePyramid(width,length,height)
base = width * length
volume = base * height / 3
return volume
END FUNCTION
w = 6
l = 6
h = 3
key = getVolumePyramid(w, l, h)
OUTPUT key
FUNCTION isEven(number)
IF number MOD 2 == 0 THEN
RETURN True
ELSE
RETURN False
END IF
END FUNCTION
list = [4,8,10,7,4,5,6,18]
i = 0
key = list[0]
WHILE isEven(key) == True
i = i + 1
key = list[i]
END WHILE
key = key * i
OUTPUT key
key = 3
WHILE key < 50
key = key * 2
IF key >20 AND key<=24 THEN
key = key - 3
END IF
END WHILE
OUTPUT key
#GPS Coordinates of the Great Sphinx of Giza
latitude = 29.9718
longitude = 31.1360
key = ROUND(longitude,0)
IF latitude>30 THEN
IF longitude>30 THEN
key = key * 3
ELSE
key = key + 30
END IF
ELSE
IF longitude>30 THEN
key = key + 20
ELSE
key = key * 2
END IF
END IF
OUTPUT key
high = 14
low = 4
WHILE high > low
low = low + 1
high = high -1
END WHILE
key = high ^ 2
OUTPUT key
queen = "NEFERTITI"
character = RIGHT(queen,1)
key = ASCII(character)
quotient = key DIV 10
remainder = key MOD 10
key = (quotient * remainder) + 2
OUTPUT key
/* --------------------------------------
Help:
DIV is the quotient of a whole division,
MOD is the remainder of a whole division.
-----------------------------------------*/
queen = "CLEOPATRA"
first = LEFT(queen,1)
last = RIGHT(queen,1)
key1 = ASCII(first)
key2 = ASCII(last)
key3 = LENGTH(queen)
key = key1 + key2 + key3
OUTPUT Key
/* HELP: The ASCII code for character A is 65 */