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

List the powers granted and denied the federal government under the Articles of confederation
Could you locate a central of expansion
che is buying a computer that costs $2,856.he pays with $100 bills.how many notes will he give the salesperson​
Please help Will give brainliest
ill give 20 points plz help and explain
What benefits would Trudy gain by ambulating to the dining room for each meal?
Fresh Kills Landfill in Staten Island was slated to be a temporary place to put garbage from metropolitan areas of New York City. For this reason, it was not li
What part of 20 is 25?
HELP ME PLEASE Jonathan has a goal to jog at least 150 miles this summer. Jonathan jogs an average of 3.3 miles per day. Jonathan must jog each day for the res
matter is comprised of of atoms is it hypothesis theory law fact belife