private static int factorial(int n) { if (n == 0) return 1; // Base case else return n * factorial(n - 1); }
static int fibIteration(int n) { int x = 0, y = 1, z = 1; for (int i = 0; i < n; i++) { //usa tu lógica aquí } return x; }
int getRandomNumber(){ return 4; //chosen by fair dice roll //guaranteed to be random}