C Program To Find The Power of An Integer

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

void main()
{
int n,m,i,pow=1;
clrscr();
printf("Enter The Number And Its Power  :  ");
scanf("%d%d",&n,&m);

for(i=0;i&lt;m;++i)
{
pow=pow*n;

}

printf("\n\n%d ^ %d = %d",n,m,pow);

getch();

}
Share on Google Plus

About Akash Manhas

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment