design an algorithm that displays the sum of numbers from 1 to 10​