Value of Exponential Power

Two numbers are entered through the keyboard.Write a program to find the value of one number raised to the power of another.
#include
#include
#include
void main(void)
{
int a,s,d;
printf("Enter the numbers:");
scanf("%d%d",&a,&s);
d=pow(a,s);
printf("The answer is %d",d);
getch();
}

Comments

Popular posts from this blog

Tip of the Day # 13

Governor Generals of Pakistan

Tip of the Day# 12