The conditional statement is extremely important and must be
thoroughly understood to write efficient C programs. If any part of this
discussion is unclear in your mind, restudy it until you are confident that
you understand it thoroughly before proceeding onward. We have used
an assignment statement within the conditional part of the if statements
purposely for instructional reasons, but assignments are not generally
used in compare statements and the compiler is warning you that you
may have intended to use the double equal sign. Compile and run this
program, then add some printout to see the results of some of the
comparisons.