1) this was incorrect because I forgot that int truncate therefore y does not equal 1.5 as I had thought but actually equals 1
5)as I did with 1 I again forgot that ints truncate and therefore x/y would almost always equal one so x/y >1 is not a good indicator for greater or less than
6)I did not not notice that all of the statements were ifs therefore I believed that the program would terminate after the first if that was triggered.
7)in this one I beveled that you could set a new variable in a block with the same names as one outside of a block. I needless to say I was wrong.
Please provide the questions you are referencing when you discuss them, like you did in previous posts. It is very difficult to make sense of your comments otherwise.
ReplyDelete