#include<stdio.h>
#include<conio.h>
main()
{
int p,n,l=1;
int s=1;
printf("\nEnter number = ");
scanf("%d",&n);
printf("\nEnter power =");
scanf("%d",&p);
while(l<=p)
{
s=s*n;
l++;
}
printf("\n%d raise to power %d is= %ld",n,p,s);
getche();
}
#include<conio.h>
main()
{
int p,n,l=1;
int s=1;
printf("\nEnter number = ");
scanf("%d",&n);
printf("\nEnter power =");
scanf("%d",&p);
while(l<=p)
{
s=s*n;
l++;
}
printf("\n%d raise to power %d is= %ld",n,p,s);
getche();
}