21 November 2018

c#basics do-while, continue, break, prime numbers

Topics:
– Learning do-while: same as while except that a first iteration will always occur!
– continue-break out of loops:
continue: will skip to the next iteration
break: will exit the loop
– checking if a number is a prime number or not: run from 2 to number-1 and look for a divider which returns module of zero

Leave a comment

Design a site like this with WordPress.com
Get started