Creato il primo esercizio
This commit is contained in:
11
1_funzioni/funzioni2.c
Normal file
11
1_funzioni/funzioni2.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#include "funzioni.h"
|
||||
|
||||
int potenza (int x, int y){
|
||||
int tot = x;
|
||||
for (int i = 1;i<y;i++){
|
||||
tot= tot * x;
|
||||
}
|
||||
return tot;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user