Quick actions

cmd+k|ctrl+k

Navigation

Languages

Expoente

Snippet info

Language

C

Visibility

public

Author

fernandanoronha.coelho

Created

2019-05-22T13:54:44Z

Updated

2019-05-22T13:55:56Z

#include <stdio.h>
int expoente(int a, int b){
    int c=a;
    for(int i=1;i<b;i++){
        a=c*a;
    }
    return a;
}
int main(void) {
    int pot, A, B;
    scanf("%d %d", &A, &B);
    pot=expoente(A,B);
    
    printf("%d\n", pot);
    return 0;
}
INFO