Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include "mylib.h"
- int donkey(studenti classe[], int lunghezza)
- {
- if (lunghezza == 1)
- return classe[0].presenze;
- int risultato = donkey(classe, lunghezza - 1);
- if (classe[lunghezza - 1].presenze < risultato)
- return classe[lunghezza - 1].presenze;
- else
- return risultato;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement