find the prime no by c++ prommgar
Answers
Answered by
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();
}
{
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)
Similar questions
Math,
7 months ago
Hindi,
7 months ago
Science,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago