int A = 5;
A++;
A -= 2;
A = ?
if (3 > 2 && 4 > 5){
//Steal some french fries
} else {
//Leave your shoes untied
}
Leave your shoes untied
int A[6] = {1.2, -5.0, 3.9, 4.3, -6.5, -2.5};
A[4] = ?
-6
int A = 3;
int B = 2;
B--;
A *= B;
A = ?
3
if (A >= 7 || 7 - 2 != A){
//Eat some toast with hot sauce
} else {
//Go to bed with a shark
}
Go to bed with a shark
int A[5] = {2, 6, -4, -1, 0};
A[2]++;
A[4] -= A[2];
A[4] = ?
2
Play the buzzer sound for frequency 700 for half a second.
tone(piezoPin, 700, 500);
int A = 4;
int B = -1;
A++;
B -= 8;
A = A + B;
A = ?
-4
int A = 9;
int B = 2;
if (A / 3 >= B && B * 2 <= A){
//Buy 57 bottles of detergent
} else {
//Make a bagel for breakfast
}
Buy 57 bottles of detergent
int A[3] = {24, 9, -5};
A[0] = A[1];
A[2] += A[0] + A[1];
A = ?
{9, 9, 13}
Turn on the LED.
digitalWrite(ledPin, LOW);
int A = -2;
int B = 1;
A += 3;
B *= 2;
B--;
A *= B;
A = ?
1
int A = 9;
if (A + 3 <= 12 || A-- >= 7){
//Call for an ambulance
} else {
//(╯°□°)╯︵ ┻━┻
}
Call for an ambulance
int A[3] = {3, 5, 3};
for (int i = 0; i < 3; i++){
A[i] = i + 1;
}
A = ?
{1, 2, 3}
Get the boolean variable for if the button is being pushed or not.
bool button = analogRead(buttonPin);
int A = 3;
int B = -2;
int C = -1;
C += A * B;
B = A;
A -= B + C;
A = ?
7
int A = -2;
int B = 5;
if (A - B <= 0 && B - (-2) < 3){
//Adopt an orphaned baby sea elephant
} else {
//Trip and fall into your toilet
}
Trip and fall into your toilet
int A[4] = {3, 5, 3, 2};
for (int i = 0; i < 3; i++){
A[i] = A[i+1];
}
A = ?
{5, 3, 2, 2}
If the button is pressed, turn on the LED, otherwise, turn it off.
if (button == HIGH) {
digitalWrite(ledPin, LOW);
} else {
digitalWrite(ledPin, HIGH);
}