ramylan00
ramylan00 ramylan00
  • 12-12-2020
  • Computers and Technology
contestada

write c++ program from 1to 100 to find prime numbers using statement.

please help me​

write c program from 1to 100 to find prime numbers using statementplease help me class=

Respuesta :

th3g3ntl3man
th3g3ntl3man th3g3ntl3man
  • 19-12-2020

Answer:

int count;

for (int i = 1; i <= 100; i++){

count = 0;

for (int j = 1; j <=i; j++)

if (i%j==0) count ++;

if (count == 2) cout << i << " ";

}

Answer Link

Otras preguntas

what is the value of s(6)
Read this passage. Anita was in her room listening to music as she styled her hair. Her mom walked in and asked, “Where are you going?” “To a friend’s party,” A
which statement best compares and contrast two physical properties of matter
What is the frequency of an electromagnetic wave with a wavelength of 1.0 x 10 m?
5. Explain what "denature a protein" means.
what is 40÷1/4?? pls hurry ​
2x-6=3x+1-x-7 what is the value of x​
Formal functional and perceptual are kinda of ?
Help ASAP!! I’ll make u BRAINLEST
Months after she was beaten up by a robber. Courtney's heart pounds with fear merely at the sight of the place in which she was attacked. The location of her at