Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: Blagden Alley

A == A + 1 is not a mathematical statement. The student was correct when he said a = a +1 is impossible. The teacher was wrong.


70 posted on 07/21/2017 5:52:19 AM PDT by IronJack
[ Post Reply | Private Reply | To 31 | View Replies ]


To: IronJack

You’ve got it backwards.

The single equal sign assigns the left side to the right which increments variable ‘a’ by 1.

The double compares. Since the value can’t equal itself plus 1, the comparison is always false.


146 posted on 07/21/2017 6:52:13 AM PDT by Bob (Damn, the democrats haven't been this upset since Republicans freed their slaves.)
[ Post Reply | Private Reply | To 70 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson