Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
The following code fragment will not compile. Why?
The following code fragment will not compile. Why?
if !x > x + y
x = 2 * x;
else
x = x + 3;
I read that long time ago about ! cannot apply to anything other than boolean. So, what is an example of using ! the correct way? and isn't the opposite of a boolean just the other boolean? !true = false.
if x <= (x +y)
x = (2*X)
else
x = (x+3)
I think this is the problem done the right way. what do you think?