DFS :: POWER

#include<stdio.h>
#include<conio.h>

main()
{
int a,b,c,i;
clrscr();
c=1;

printf(“Enter the value:”);
scanf(“%d”,&a);
printf(“Enter the power”);
scanf(“%d”,&b);

for (i=1;i<=b;i++)
{
c=c*a;
}
printf(“%d”,c);
getch();

}

Share

About the Author

Akash Padhiyar

Visit Website

There are no comments yet, add one below.

Leave a Comment

Your email address will not be published. Required fields are marked *

*

Time limit is exhausted. Please reload CAPTCHA.