Learn
We introduced you to a few common built-in methods, but there are many more out there! Now’s a good time to practice your documentation search skills. Take a moment to look up the following built-in methods to understand their usage:
Math.Pow()
Math.Max()
Math.Ceiling()
(If you’re having trouble locating what you need, we recommend the Microsoft .NET API documentation).
Instructions
1.
In this exercise, you’ll need to use the documentation linked above.
Inside of the first Console.WriteLine()
command, raise numberOne
to the numberTwo
power.
2.
Inside of the second Console.WriteLine()
command, round numberOne
up.
3.
Inside of the third Console.WriteLine()
command, find the larger number between numberOne
and numberTwo
.
Take this course for free
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.