Computer Science, asked by Limee, 20 days ago

Write an algorithm to generate a series of first ten even numbers

Answers

Answered by jharodiyagaming
1

Explanation:

  • Start.

  • Declare a count variable (to keep track of number of even number printed)

  • Run a for loop from 1 to 100 (say 100)

  • Check if count has reached the number of even number printed as 10. ...

  • Check if the current number in the loop is divisible by 2.

  • If yes, then increment the count and print the current number. ...

  • Stop.

Hope it's help you

Similar questions