Write a program in C to check whether the number is prime or not.
/*Write a program in C to check whether the number is prime or not.*/ /*Note: Prime numbers are those numbers which is divisible by 1 or itself */ /* Solution 1: */ #include<stdio.h> #include<conio.h> void main() { int num,i=2; /* Variables Declaration of integer type num and i and initialize the value of i*/ clrscr(); /* Function to clear the console screen */ printf("Enter a number\n"); /* General message for the user */ scanf("%d",&num); /* Input a number by the user/through the keyboard*/ while(i<num) /* Starting of while loop */ { if(num%i==0) /* Check whether the input number is...
