#include <stdio.h>

int main() {
    int x,y,i=1;
    long int pow=1;
    
    printf("\nEnter the value of x and y");
    scanf("%d%d",&x,&y);
    while(i<=y)
    {
        pow=pow*x;
        i++;
    }
    printf("\n The value of %d to raised to %d is %ld",x,y,pow);
    
    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: