Help!
Next: About this document ...
Up: Functions
Previous: Type Checking

Checkoff

Write a function ``power'' that expects two arguments, ``x'' and ``n'', and returns x to the power n. The argument x is of type double, n is of type int, and the returned value is of type double. You may assume that ``n'' is not negative.

Do all of the prompting for input and displaying of results in the main function.

Homework

There is no homework for this lesson.


Help!
Next: About this document ...
Up: Functions
Previous: Type Checking

Hamlet Project
hamlet@cs.utah.edu