본문 바로가기

Hunt 3: Text and numbers

English

Text or number?

  • "3" is a STRING. 3 is an INTEGER. They act differently.
  • Join strings with &. Turn a number into a string with NUM_TO_STR.
Word Meaning
data type the kind of value: STRING, INTEGER, REAL, CHAR, BOOLEAN
convert change the type of a value
DECLARE Age : INTEGER
Age ← 3
OUTPUT "Age: " & NUM_TO_STR(Age)

로그인 또는 계정 만들기

IGCSE, A-Level & AP