Friday, December 14, 2007
10. Write a C program to find whether the given number is prime or not and output the given number with suitable message.
/* Prime or Not*/
printf("Enter the value to check whether it is prime or not\n");
printf("%d is a prime number\n\a",num);
printf("%d is not a prime number\n\a",num);