Booleans
Boolean is a data type like int
It has two values: true and false
boolean answer;
int x;
int y;
x = 3;
y = 5;
answer = (x == y);
What value ends up in the
variable �answer� ?
Previous slide
Next slide
Back to first slide
View graphic version