The Math
object provides some mathematical functions such as rounding, exponents, sine, cosine, tangent, etc. These functions may or may not benefit you depending on the program you are writing and the intended use. Even though, the sample code below uses a concepts (such as the for
loop) you haven't learnt yet, try to understand why the Math
object is used and how it could benefit your code in the future.