a c language program that check if given number is prime number of not

Output:
Enter any number
19
The number 19 is prime.


Explanation
In this programme the user is asked to enter any number and then use a while loop to repeat through the numbers those are less than the given number and checks if the number is prime or not. The number is prime if the number is divisible by 1 and itself.
Finally the program displays the results to the end user.


Previous :-->> 3.Write a program in c programming to print the reverse of any given number using a for loop.
 -->> NEXT: 5.Write a program in c to display the Fibonacci series up to a given number using a while loop.
-->>ALL Loops Assignments in c