initialise numbers to an empty array, iterate 10 times, add the number entered to the end of the numbers array, set a total to 0, add the value at numbers position[i] to the total, use an in-built function round() to display total to 2 decimal places.

Ranking

Estilo visual

Opções

Alterar modelo

Restaurar arquivo salvo automaticamente: ?