hello there! i badly need help on this. how do i implement a power function that:
a. does not use the cmath library
b. does not use repetitive multiplication
c. USES repetitive Addition

thanks in advance! :S

Recommended Answers

All 2 Replies

Multiplication is repetitive addition. Use loops.

Give it a try and then we'll help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.