Due by the end of lab(April 1, 1997): Write a program that reads in numbers x and n from the keyboard, computes xn using the algorithm below, prints the result. allow the user to enter additional pairs of numbers If n < 0, xn is 1/(x-n). x0 is 1. If n is positive and even, then xn = (xn/2)2. If n is positive and odd, then xn = xn-1x.
Write a program that
If n < 0, xn is 1/(x-n). x0 is 1. If n is positive and even, then xn = (xn/2)2. If n is positive and odd, then xn = xn-1x.