Write down a function which calculates and prints fractional powers of its first argument as shown below for first argument of 2(1/2,1/4,1/8 and so on). The function must also print decimal value of each fraction as given below. Range of powers printed must be determined by function's second and third input argumnets (1 and 3 for Write down the driver function to test program.
Power Fraction Decimal Value
1 1/2 .5
2 1/4 .25
3 1/8 0.125