Quote:
Originally Posted by SakSquash
He taught us that addition thing, and that was it. So now i'm supposed to just know how to square and cube shit?
|
Dude, squaring and cubing shouldn't be the problem here. If you have never learned that the square of a number is the number times itself, and the cube of the number is the number times itself times itself, you have bigger problems than just a Javascript homework.
When he showed you "sum = number1 + number2;" you should be able to infer that you can do "product = number1 * number2;" and "square = number1 * number1;"
The rest of the assignment is just loops and writeln.