.....ma perche scusa usi un array quantita[] ?????
non puoi prendere il valore dall'input punto e basta?