PseudocodeExamplePrimes - prime = true Initialize factor to...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Pseudocode example for Input low number for search range for prime numbers Input high number for search range for prime numbers Initialize number to low number While number <= high number
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: prime = true Initialize factor to 2 While factor &lt; number If number % factor == 0 prime == false factor++ If prime == true Display number as prime number++...
View Full Document

This note was uploaded on 02/10/2012 for the course CIS 120 taught by Professor Doran,m during the Spring '08 term at S. Alabama.

Ask a homework question - tutors are online