Computer Science, asked by Anonymous, 11 months ago

#include

#include

void main()

{

clrscr();

int i, j, start, end, count=0;


cout<<"\nEnter starting number : ";

cin>>start;


cout<<"\nEnter ending Number : ";

cin>>end;


cout<<"\nPrime numbers between "<
for(i=start;i<=end;i++)

{

count=0;

for(j=2;j
{

if(i%j==0)

{

count++;

break;

}

}

if(count==0)

{

cout<
}

}

getch();

}


How will the For loop Process or Function(?) In this program of displaying Primes Numbers between two user input numbers.
TURBO(C++)

Answers

Answered by rohityadav1829
0
include #include void main () { clrscr(); int i, j, start, end, count=0; cout<<"\ nEnter starting number : "; cin>>start;
Similar questions