how to write a program for raising a number to a power(integer only)
(e.g 2^2=4 ; 3^3=27 etc)
without using a precompiled C function(ie pow()). but only used addition, substraction, while loops,if statement and/or for loop.
erictham83 0 Newbie Poster
Brent_Ritterbec 1 Newbie Poster
Brent_Ritterbec 1 Newbie Poster
gayatridas 0 Newbie Poster
death_oclock 103 Posting Whiz
BimanD 0 Newbie Poster
csurfer 422 Posting Pro
csurfer 422 Posting Pro
mtx_rashid 0 Newbie Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
shiva_202 0 Newbie Poster
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.