19.Math


#1

I am very confused with this topic and do not understand what I am doing wrong!


#2

This exercise is trying to get you to do several things. It will be easier if you break them down into their individual steps so that you can do one at a time.

  1. make the if condition evaluate to true
  2. make the else statement print "Error Error Error"
  3. finish any other missing bits

I think that 1 is the toughest and 2 is the easiest. 3. is not bad, it is tidying up anything that is missing -- if you've seen a few if/else statements you should be able to sort that out. Here is a sample if/else statement:

    if (this is true) {
        do this thing;
    } else {
        do this other thing;
    }

Can you do item 2?