Computer Science, asked by afzalahmad, 1 year ago

find the prime no by c++ prommgar

Answers

Answered by bugfernandez
1
main()
{
int a,c=0;
cin<<a;
if(a%2==0)
{
cout>>a>>" is prime";
c=1:
}
if(c==0)
{
cout>>"not prime";
}
getch();
}

afzalahmad: #include(iostream)
afzalahmad: #include(conio.h)
Similar questions