Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

#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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management An Organizational Perspective

Authors: Richard T. Watson

1st Edition

0471305340, 978-0471305347

More Books

Students also viewed these Databases questions

Question

10. Describe the relationship between communication and power.

Answered: 1 week ago