Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many computer systems.

This problem requires that you write a function to compute the exact value of RAN^num where RAN is a real number ( 0.0 < RAN < 99.999 ) and n is an integer such that 0 < num <= 25.

Leading zeros should be suppressed in the output. Insignificant trailing zeros must not be printed. Don't print the decimal point if the result is an integer.

Example 1: RAN = 85.200 , num = 12 , result = 146310379639566282742693.615890333696 Example 2: RAN = 0.212, num = 10, result = .000000183382804125988210868224

Contributed by Coder

You are not signed in. You can only run/submit code after signing in. Create your free Codela account now!