/* calculate power using while loop */
#include<stdio.h>
int main()
{
int a, b, i, p;
printf("Enter value of a: ");
scanf("%d",&a);
printf("Enter value of b: ");
scanf("%d",&b);
p=1;
i=1;
while(i<=b)
{
p = p * a;
i++;
}
printf("Power : %d",p);
return 0;
}
Related Post:
Calculate power using for loop
http://cbasicprogram.blogspot.in/2012/01/calculate-power-using-for-loop.html
Attention everyone, the file provided above is not working. I have been looking for the working file and finally found it.
ReplyDelete✔️Click Here To Download http://gestyy.com/e0GAyS
✔️Click Here To Download
✔️Click Here To Download http://exe.io/XONVsO6l
✔️Click Here To Download
✔️Click Here To Download
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Mn.
..
.
.
.
..
.
.
.
.
.
.
.
.
.
.
..
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.cxxcx
.xccx
.sdcccxxx