1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Stolb23 [73]
3 years ago
8

Hello hello . please help me​

Computers and Technology
2 answers:
adelina 88 [10]3 years ago
5 0

Answer:

#include <iostream>  

using namespace std;  

int main()  {  

 int num, check=0;  

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

for(int i = 2; i <= num/2; i++)  {

     if(num % i == 0)   {  

         check=1;  

         break;         }     }  

 if (check==0)  {       cout <<num<<" ";     }

 check = 0;

 }

 return 0;  

}

Explanation:

This line declares num as integer which represents digits 1 to 100.

A check variable is declared as integer and initialized to 0

<em>  int num, m=0, check=0;   </em>

This for loop iterates from 1 to 100

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

This iterates from 2 to half of current digit

for(int i = 2; i <= num/2; i++)  {

This checks for possible divisors

     if(num % i == 0)   {  

If found, the check variable is updated to 1

         check=1;  

And the loop is terminated

         break;         }     }  

The following if statement prints the prime numbers

 if (check==0)  {       cout <<num<<" ";     }

 check = 0;

 }

Svetradugi [14.3K]3 years ago
3 0

Answer:

What mr. royal said is correct

You might be interested in
Blank Are input instructions you give to a computer
kotegsom [21]

Explanation:

A computer is a machine that can be programmed to accept data (input), process it into useful information (output), and store it away (in a secondary storage device) for safekeeping or later reuse. The processing of input to output is directed by the software but performed by the hardware.

4 0
3 years ago
Annie wants to create a polka-dot pattern. She wants the dots to be distributed evenly in her pattern. She has turned on the gri
Alekssandra [29.7K]

Answer:

Annie should ensure that her dots are grouped in the Layers Palate.

Explanation:

For Annie to create a polka-dot pattern, that has dots distributed evenly in her pattern. She should turn on the grid feature in Illustrator.

Annie should ensure that her dots are grouped in the Layers Palate in order not to have a hard time manually arranging the dots.

4 0
4 years ago
What is software? what are two types of software?​
mel-nik [20]
Software is the programs and other operating information used by a computer. Two types of software are system software and Application software. Hope this helps :)
3 0
3 years ago
What is the name of the most common connector type used for providing power to various hardware components inside computer case?
user100 [1]
The answer is the molex.
4 0
4 years ago
Key Vocabulary:
telo118 [61]

try is input

And which show after opening is output

4 0
3 years ago
Other questions:
  • What protocol must be supported by routers in order to utilize remote assistance easy connect?
    10·1 answer
  • Brock wants to use several images on his hiking blog. However, the images are making his pages load very slowly. Explain to Broc
    6·1 answer
  • PLS ANSWER QUICK!!!!
    12·1 answer
  • A python package used in text analysis and natural language processing. True or False
    10·1 answer
  • Write an expression whose value is the concatenation of the three strigs name1, name2, and name3, separated by commas
    9·1 answer
  • Which data type is –7?<br><br> int<br><br> single<br><br> string<br><br> float
    15·1 answer
  • I need help building a computer what are some good parts?
    9·1 answer
  • Carbohydrates are a huge source of
    7·2 answers
  • FIRST TO Answer for free brainlest. GOG GOGOGO
    14·2 answers
  • Which sql keyword is used to retrieve a minimum value from an attribute in a table
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!