brainfrz

Untitled

Oct 1st, 2015
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Initial Algorithm
  2. Get a number of prompts between 1 and 100 inclusively
  3. WHILE counter ≤ number of prompts
  4. Prompt for another number
  5. IF counter is even THEN
  6. Add counter to total of even counters
  7. ELSE
  8. Add counter to total of odd counters
  9. END IF
  10. Increment counter by 1
  11. END WHILE
  12. Display total of even counters
  13. Display total of odd counters
Advertisement
Add Comment
Please, Sign In to add comment