0
Need help creating a C++ program generating prime numbers.
prime numbers program that generates range between upper and lower limit entered by user. program diaplays total quantity of prime numbers and their sum. help needed.
5 Respostas
+ 3
count++;
+ 3
int low, high;
for (int i = low; i <= high; i++)
{
//your method
}
+ 2
Did you try to solve it and if so, where are you stuck?
0
I m able to make result appear, but all numbers are appearing individually, I want to tell total quantity of prime numbers
0
for sum I use sum= sum +i;
what will I use for total quantity?