#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
0
include #include void main () { clrscr(); int i, j, start, end, count=0; cout<<"\ nEnter starting number : "; cin>>start;
Similar questions
Social Sciences,
7 months ago
Physics,
7 months ago
Computer Science,
7 months ago
Math,
1 year ago
Accountancy,
1 year ago