
-----------------------------------
dymd3z
Wed Apr 25, 2007 8:52 am

integers
-----------------------------------
I'm not a math person and I'm asked to do a certain question such as 

The integer to variable x equals 1. Write the kine to increment x by 5.

That is all gibberish to me and I'm not sure what to do. Im think a "for" procedure and make it go "by 5" but then again, i dont understand math jargon and i could be completely wrong. anyone have some ideas?

-----------------------------------
Drakain Zeil
Wed Apr 25, 2007 9:46 am

RE:integers
-----------------------------------
x:=1
x:=x+5

-----------------------------------
ericfourfour
Wed Apr 25, 2007 11:28 am

RE:integers
-----------------------------------
The += operator results in less typing.

x := 1
x += 5

It can be referred as an addition assignment operator.

-----------------------------------
Drakain Zeil
Wed Apr 25, 2007 9:49 pm

RE:integers
-----------------------------------
Yeah, I was going to suggest it, but I'm thinking back to my grade 11 where only 2 students could comprehend +=, or other _= operators.
