Files

12 lines
127 B
C

#include "funzioni.h"
int potenza (int x, int y){
int tot = x;
for (int i = 1;i<y;i++){
tot= tot * x;
}
return tot;
}