Displaying prime numbers between given numbers in C

This program is another example of application of loop. Here the prime numbers in given range are displayed using two loops.The outer loop increases the number from starting point to end point and inner loop checks whether the number from outer loop is prime or not. If prime it displays it not it does not. The complete source code and output is given here
Source Code

Output

prime

SHARE Displaying prime numbers between given numbers in C

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

Share