Question: Please develop a program that performs a power equation (base to the power). Your program must ask for the base, power, and display the results

Please develop a program that performs a power equation (base to the power). Your program must ask for the base, power, and display the results (Using while iterative structure). Your program must support power of 0 and negative. Without using the pow function.

This is what I have the positive and 0 exponent work but the negative does not.

Please develop a program that performs a power equation (base to the

#include #include int main() float x=0; float y=0; float z=0; int counter=1; int countery=0; printf("Please enter the base and then the power separated by a space, respectively "); scanf("%f %f", ex, &y); z=1; 15 while (countery

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!