|
sqrt(x) |
|
x = The number to be rooted..
This function takes the square root of x. X can be any positive real number, even a variable that has a real number value, but no letters, or negative numbers.
Example #1:
Example #2:
Let's say that the user typed in 4. Since the square root of four will be equal to 2, the variable "number" now holds the value 2.
Note that if you just put sqrt(number) it wont do anything, because you didn't tell it store this value in a variable That's why I put number = sqrt(number) cityscape - Revision #1 |