C Programming- Power of a Number Using the while Loop

Опубликовано: 01 Октябрь 2024
на канале: Jayant Tripathy
154
2

#cprogramming #shorts
C Programming- Power of a Number Using the while Loop

The program below takes two integers from the user (a base number and an exponent) and calculates the power.

For example: In the case of 23

2 is the base number
3 is the exponent
And, the power is equal to 2*2*2