x = x + 1
hmm..if you subtract x from both sides, that eliminates the x....I am confused
Wouldn't that be impossible let's say x=2 well 1+2=3 so then its not right x=3...well 1+3=4 so it's not right
no solution ??
No solution it is impossible If you read my explanation you will see
there's no solution. x - x = 0 0 does not equal 1 so the answer is there is no answer
THANK YOU!
oh sorry, i thought this was the computer science section,
>:(
I was about to ask what kind of math this was xD I know you're definitely passed all of us in math.
I can solve this
computer science is strange notations
x = x + 1 is exactly x = x + 1 so for any value of x, add 1 to it
Nin. Still wouldn't work.
how does it not work?
x = 2 x = x + 1 x == 3
x=x+1 theoretically for x->inf
Oh, I see what you mean, nin.
(example) x = 2 2 = 2+1
okay i don't understand what you mean
does 2 = 3? that's how it doesn't work
2 != 3
hehehe
try it in C
could have simply written x++ there would have been no confusion :P
hahahah
Python 2.7.5 (default, Aug 25 2013, 00:04:04) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> x = int(raw_input("Please enter an integer: ")) Please enter an integer: 45 >>> x = x+1 >>> print n >>> print x 46
I had to use Python because I couldn't load C in the shell
scratch print n LAUGHING OUT LOUD that will return as undeclared variable
whats the question though ?
|dw:1398787663675:dw|
I don't have a question I clarified confusion.
√
while Python does use "=" for both assignment and equality testing, some languages distinguish the two by using different symbols C uses = for assignment and == for equality testing, as does Mathematica APL uses "<-" to denote assignment "x <- x+1" SAIL uses "_" to denote assignment "x _ x + 1"
if you have a unix shell, try the code I used and enter a different integer, then try to display the value of x this happens in C, C# or C++ as well just with a different syntax
i also would have accepted x += 1
Join our real-time social learning platform and learn together with your friends!