see

A

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();
}

Copyright © 2013. BloggerSpice.com - All Rights Reserved
Customized by: MohammadFazle Rabbi | Powered by: BS
Designed by: Tilabs