|
I hate math... that's why the computer does it for me!
As you can guess, we are going to finally discuss some of the math functions. Don't worry. Most of the functions are extremly easy to use and remember. Add +This is very simple. On the left, you have the variable you want the result of the addition to go into. On the right, you have the two numbers (constant or variable) you want added with a plus sign in between them. Huh? You want to add two numbers, right. Well, the result will be inside of a variable on the left side of the equal sign. The numbers that will be added are on the right. x = 5 + 2. // correct y = y + 7 // correct x = x + x + x + 9 + 16 + y + t // still correct Subtract -The same rules apply. Just put the subtraction sign in, instead of the addition sign. x = 5 - 2 // correct y = y - 2 // correct x = x - x - x - 9 - 16 - y - t - 11 //still correct Multiply *The same rules apply. Just put the multiply sign in, instead of the addition sign. Divide /The same rules apply. Just put the division sign in, instead of the addition sign. |