#include <stdio.h>

int main() {
    int i,x,y;
    long int pow=1;
    printf("\n Enter the value of X and Y AS (x^y):");
    scanf("%d%d",&x,&y);
    for(i=1;i<=y;i++)
    {
        pow=pow*x;
    }
    printf("\n %d is raised to the power %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: