To Find The Prime Number.
Join the DZone community and get the full member experience.
Join For Free// description of your code here
{
int a,b;
printf("enter the starting no:\t");
scanf("%d",&a);
printf("enter the final no:\t");
scanf("%d",&b);
clrscr();
printf("The Prime Numbers Are\n");
for(a;a<=b;a++)
{
if(a%2)
{
printf("%d",a);
}
}
getch();
}
Regards'
Link building uk
PRIME (PLC)
Opinions expressed by DZone contributors are their own.
Comments