Ma anziché usare 8 variabili non puoi usare un array di 8 elementi?