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;

    }

    • 0
      @ 2024-10-3 16:37:22

      #include <stdio.h>
      #include <math.h> int main() {

      int a,n;

      scanf("%d %d",&a,&n);
      printf("%.0f",pow(a,n));
      

      return 0;
      }

      • 1

      Information

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