Program to Calculate X to the power Y

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int x,y,z;
clrscr();
printf("\nEnter X");
scanf("%d", &x);
printf("\nEnter Y");
scanf("%d", &y);
z=pow(x,y);
printf("\nresult of X to the power y is %d", z);
getch();
}

Leave a Reply