Sveto Koychev wrote: . . . (x <= 0 && x > 9) . . .
…and go through that
boolean expression carefully before use, and check what values you get
Please avoid 1‑letter names for variables, except as in
these suggestions.
Please get yourself a decent text editor and follow the suggestions in
this thread. Find the link about writing backwards.
Your indentation is inconsistent and your
//end comments are incorrect. There is a risk of your failing to match {s and }s. You can cause serious errors by incorrect indentation or formatting, so please have a look at
these suggestions. “Writing backwards” makes it easier to avoid such errors.