Write the algorithmic steps to find the sum of even numbers from 1 to 10
Answers
Answered by
2
Answer:
Algorithm:
In this algorithm, i and sum are two integer variable with initial value 1 and 0 respectively.
1. START
2. i ⟵ 1
3. sum ⟵ 0
4. while ( i <= 10) do
5. if( i %2 == 0 ) then
6. sum ⟵ sum + i
7. end if
8. i ⟵ i+1
9. end while
10. Display sum
11. END
**Please follow me and mark this ans as Branliest answer.Thank you!
Similar questions