So im trying to do the Fruit one where you chose if banana or apple is true/false. Eitherway i copied the entire code from the book but it still seems to be something wrong.
Couldn't find any typos, here's the full thing if it helps
const boolean LikeApples = false;
const boolean LikeBananas = true;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600) ;
}
void loop() {
// put your main code here, to run repeatedly: Print what kind of fruits you like
if(LikeApples == true && LikeBananas == false) {
Serial.println("Have An Apple") ;
}
else if(LikeApples == false && likeBananas == true) {
Serial.println("Have a Banana") ;
}
else if(LikeApples == true && LikeBananas == true) {
Serial.println("Have Some Fruit Salad Mate") ;
problem solved guys, typo was found but couldn't repost due to time limit. Thanks for the help. Unbelivable how one typo can mess everything up completely.