Introduction to Programming with raptor
Common errors when using variables
Download
398.84 Kb.
Page
5/11
Date
31.07.2021
Size
398.84 Kb.
#57126
1
2
3
4
5
6
7
8
9
10
11
introduction to programming with raptor
Navigate this page:
The variable name was misspelled
RAPTOR Statements/Symbols
Common errors when using variables:
Error 1:
"Variable ____ does not have a value“.
There are two common reasons for this error:
The variable has not been given a value.
The variable name was misspelled.
The variable has not been given a value
The
variable name was misspelled
Error 2:
Error 2:
"Can't assign string to numeric variable _____"
"Can't assign numeric to string variable _____"
This error will occur if your statements attempt to change
the data type of a variable
RAPTOR Statements/Symbols
Four basic statements:
Input Statement.
Assignment Statement.
Call Statement.
Output Statement.
Input Statement/Symbol
An input statement/symbol allows the user of a program to enter a data value into a program variable during program execution.
When
you define an input statement
, you must specify two things:
a prompt .
The variable that will be assigned the value enter by the user at run-time.
Download
398.84 Kb.
Share with your friends:
1
2
3
4
5
6
7
8
9
10
11
The database is protected by copyright ©ininet.org 2024
send message
Main page
start symbol