The reason your cat flips between saying "pear" and "strawberry" isn't because the value is close to the limit. That makes no difference to a program since it deals with exact numbers. It flips because you have essentially two processes running. One is asking "is the value less than 68?" and one asks "is the value less than 90?" Well, both can be true. C change the "if < 68" statement to an "if-else" statement. Then put the "if < 90" block inside the else portion.
The reason your cat flips between saying "pear" and "strawberry" isn't because the value is close to the limit. That makes no difference to a program since it deals with exact numbers. It flips because you have essentially two processes running. One is asking "is the value less than 68?" and one asks "is the value less than 90?" Well, both can be true. C change the "if < 68" statement to an "if-else" statement. Then put the "if < 90" block inside the else portion.
yanthinator 5 months ago
clear and useful - thanks for sharing.
joyfulkitchen 7 months ago
very nice, do you share the programs in the scratch projects?
MDpine 1 year ago