2 solutions

  • 0
    @ 2025-11-2 18:39:42

    #include<stdio.h>

    #include<math.h>

    int main(){

    int a=0,n=0,i=0,s=1;

    scanf("%d %d",&a,&n);

    while(i<n){

    s*=a;

    i++;

    }printf("%d",s);

    return 0;

    }

    Information

    ID
    6746
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    3
    Tags
    (None)
    # Submissions
    132
    Accepted
    71
    Uploaded By