A program that read two numbers(x,y) & display the value of x to the power y in C.

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

void main()
{
    int x,y,i;
    long power=1;
    clrscr();
    printf("Enter first value,x = ");
    scanf("%d",&x);
    printf("Enter second value,y = ");
    scanf("%d",&y);
    for(i=1;i<=y;i++)
        power=power*x;

    printf("\nx to the power y = %ld",power);

    getch();
}