Posts by leotx • 53 points
2 posts
-
1
votes3
answers13025
viewsA: Sum of whole numbers from 1 to 100
Thanks! I had just got it when your msg arrived. I will leave below as my resolution and sorry for the trivial question. Var numero, soma: inteiro Inicio numero <- 0 soma <- 0 enquanto (numero…
-
3
votes3
answers13025
viewsQ: Sum of whole numbers from 1 to 100
I am trying to create an algorithm that adds the numbers of the interval 1-100. In addition the program prints each element of the sum and at the end the result. That is, 1 + 2 + 3 + 4 + 5 + 6...…