-5

I am trying to write an algorithm in pseudocode form to find a number in a list of numbers but I couldn't get it.

how do I rite an algorithm in pseudocode to find the smallest even number in a list of numbers?

1 Answer 1

2

If you post your homework in Stack Overflow, you won't learn how to do it.

Var Answer
For each item in the list
  Is this item even?
    Yes:  Is Answer blank?
            Yes:  Answer = Current Item
     No:   Is Current Item < Answer?
            Yes:  Answer = Current Item
Go to next Item
Print Answer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.