Computing Prime Numbers
From CompSciWiki
Revision as of 11:41, 6 April 2010 by ChristopherJ (Talk | contribs)
Back to the Program-A-Day homepage
ProblemIt is often useful to compute prime numbers (e.g. Encryption). Compute prime numbers up to 20 by use of nested loops. |
SideSectionTitle
An image or By Students section | |
---|---|---|
SolutionYou start by using a for loop that will count from 1 to 20. | ||
CodeSolutionCode goes here. Please DO NOT put your code in <pre> tags! |