variable and IF statements Flashcards
1
Q
what is data?
A
information that an arduino can process
2
Q
what is a variable?
A
a container for data
3
Q
why do we work with variables?
A
its easier to work with data
- easy to find
- easy to move
- easy to store
- easy to know what is what and hoe to store it
4
Q
types of data
A
integers: whole numbers
float: decimal numbers
char: keys on your keyboard
boolean: statements that are either 1 or 0/true or false/ yes or no
5
Q
pieces of information for the arduino
A
variable type
variable name
data
e.x) string name= (“sam”); or int score=(999);