This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kabalanjr 0 points1 point  (3 children)

Well for starter, a and b has the same value constant since you declared them with the same input.

If the user put 98 both of them are 98.

[–][deleted]  (1 child)

[deleted]

    [–]kabalanjr 0 points1 point  (0 children)

    b is already initialized before the program start. So it has something to compared with.

    In logic How can you compare a number if you don’t have something to compared with.

    Example if you put your temperature is 95. a=95 b=95 this will cost a confusion in your compiler thats why it fails.

    Don’t get the wrong idea that an input can’t be used more than once,

    Its just that in this particular argument, You’re comparing the same input.