View Single Post
Old 04-05-2006, 06:27 AM   #49
After a brisk nap
Elegantly copy+pasted
 
After a brisk nap's Avatar
 
Join Date: Jan 2005
Posts: 1,773
Default

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.
__________________
Please excuse me. I've got to see a man about a dog.
After a brisk nap is offline