Hi,
I am fairly new to the world of PHP and have been assigned a problem for class that I am really struggling with. It is a math equation that takes two inputs from a user (by creating a sticky) and places the answer in a third txt box. The instructions are as follows:
the number of positive integers, from 1 to N, they want to sum
the power that each term should be raised to before summing the computation for finding the power of each term should be done in a separate function that
passes the base
passes the power
returns the result
So if the user enters 3 in Box 1 & 3 in Box 2, I would need to calculate
13
23
33
The displayed result in Box 3 would be 36, or the sum of 1+8+27)
Any help would be greatly appreciated!
NPT