WAP to take an integer number as input and find if it is a prime number or not
WAP to take an integer number as input and find
if it is a prime number or not
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int n,b;
printf("enter the value");
scanf("%d",&n);
b=n%2;
if(b==0)
{
printf("nu is prime");
}
else
{
printf("odd");
}
getch();
}