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 Statement.please Help Me

Answers

Answer 1

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 << " ";

}


Related Questions

to group worksheets together press and hold the _____ key​

Answers

Answer : to group worksheets together press and hold Ctrl key.

HELP ASAP 100 points as i need answer soon

You join Mountain Water Co – an expanding bottled water company as an information security officer. The company wants to do a lot of advertising of its bottled water products through its website. The CEO asks you to review the company website and report if it is secure. After talking to the webmaster you find out the following:
The Web server accepts all connections


No authentication is required

Self-registration is allowed

The web server is connected to the Internet

Is the situation secure? Select all that apply.


a. Yes. There is no threat to a bottled water company so it is secure.


b. There is insufficient information available to answer this question.


c. No. Anything that is connected to the Internet is insecure.


d. No. The system is allowing everyone to register. Only individuals who are associated with the company should be able to register.


e. No. If there is no authentication, then anyone with access to the website online can access it. For good security only individuals with certain authorized roles should access a website.

Answers

Answer:

yes

Explanation:

but you need to open the website before asking this question

Write code to print values of integers x, y, and z in a single line such that each value is left-justified in 6 columns

Answers

The code to print given value can be x = int(input ("enter first number: ")) y = int(input ("enter second number: ")) z = int(input ("enter third number: ")) print('%6d %6d %6d' %(x,y,z)).

What is a code?

Print is a function in many programming languages that sends text, variables, or another object to the screen. If you're more familiar with the Scratch programming language, print is equivalent to say.

The print command is used to print a file without using a printing-capable Windows application.

We receive three integer variables (x,y,z) using the Python programming language, and the values are printed out using string formatting (%6), which specifies that the output should be right justified with a width of 6.

x = int(input ("enter first number: "))

y = int(input ("enter second number: "))

z = int(input ("enter third number: "))

print('%6d%6d%6d'%(x,y,z)).

Thus, this is the code to print given value.

For more details regarding a code, visit:

https://brainly.com/question/1603398

#SPJ1

Given positive integer num_insects, write a while loop that prints, then doubles, num_insects each iteration. Print values ≤ 100. Follow each number with a space.


Sample output with input: 8

8 16 32 64

Answers

Using the knowledge in computational language in python it is possible to write a code that given positive integer num_insects, write a while loop that prints, then doubles, num_insects each iteration.

Writting the code:

num_insects = int(input('Enter num: '))

while (num_insects > 0) and (num_insects <= 100):

  print(num_insects, end='\n') # New line

  num_insects = num_insects * 2

See more about python at brainly.com/question/12975450

#SPJ1

Which menu option allows you to change the display to close-up, single, or multiple pages?

Answers

What is the question asking for?……

Assume that your company provides IT systems integration consultancy for mid-size
manufacturing, distribution and logistics companies in the country. Having recommended and
implemented a Management Information Systems (MIS) for one on your leading clients, and
taken part in the training session of the MIS conducted by the vendor, develop a process model
with the appropriate tool set for the activities that must be performed by the sales ordering
module of the MIS to capture customer’s sales order for a named client. (Note: Your solution
must include (but not limited to) an explanation of the sales module of the MIS and the steps
involved in the sales order activities).
Discuss how information systems are useful for organizations?

Answers

Every company needs records of its actions in order to identify the root of issues and implement appropriate fixes. Storage of operational data, communication logs, documents, and modification histories can be done with the help of information systems.

Why is information system important?

By supplying organizations with information they can use to make informed decisions, information systems may help them make better judgments. An organization might, for instance, employ an information system to gather sales data, which will show which products are selling well and which are not. The things to promote or delete can then be decided using this data.

By processing data from company inputs to produce information that is valuable for managing your operations, information systems become important. You can either add more data to make the information more accurate or use the information in innovative ways to boost the usefulness of the information system.

By enabling managers and other organization leaders to store data in folders and documents that can be seamlessly shared with the right personnel, information systems help disseminate information.

Learn more about information systems on:

https://brainly.com/question/14688347

#SPJ1

Advantages and Disadvantages of Modern Devices​

Answers

Answer:

Advantages of Technology:

Easy access to information

Improved Communication

The convenience of travelling

Convenience in Education

Improved entertainment

Disadvantages of technology

Excessive dependency

Inevitable Cheating

Laziness and forgetting the basic way of studying

What device that will have the most network ports.

Answers

Answer:

switch device

Explanation:

because its purpose is to connect many devices.

Answer: SWITCH DEVICE

Explanation:

write a complete main that will input a decimal number, double it and display the results

Answers

Answer:

No sure what language you want but since I am best with Java.

class Main {

 public static void main(String[] args) {

   Scanner input = new Scanner(System.in);  // Create a Scanner object

   System.out.println("Enter Number");

double number01 = input.nextLine();  // Read user input

double multi = number01 * 2;

   System.out.println("Number is " + multi);  // Output user input

}

}

Explanation:

A computer is experiencing network connectivity issues; what step would you NOT attempt to solve the problem?

Answers

Answer:

A step I wouldn't take is throwing the computer in the trash and lighting my house on fire.

Explanation:

How does the CPU interface with the device to coordinate the transfer?

Answers

Explanation:

The CPU can initiate a DMA (Direct Memory Access) operation by writing values into special registers that can be independently accessed by the device, The device initiates the corresponding operation once it receives a command from the CPU.

Which of the following makes the varied types of digital communication possible?


an agreed-upon set of rules and standards governing the way technology shares and manages data


properly linking all of the workstations on a closed loop-like configuration


refraining from relying too heavily on one central hub that connects all nodes on a system


only using a high-quality server computer with lots of memory

Answers

Answer:

An agreed-upon set of rules and standards governing the way technology shares and manages data

How many input configurations does the Boolean expression (x AND Y) OR (NOT x
AND NOT y) have?
4
6
8
10
CAN SOMEONE PLSEASEEE HELP ME

Answers

Answer:

4

Explanation:

There are only 2 inputs, X and Y, and the number of different input configurations will be 2-to-the-power-of the number of inputs.

2² = 4

In other words, XY can be 00,01,10 or 11 and that's it. Four combinations.

BTW, (x AND Y) OR (NOT x AND NOT y) is allso called XNOR. See picture.

HELP PLEASE
Which type of error occurred in the following lines of code?

>>> print(9 / 0)
Traceback (most recent call last):
File " ", line 1, in
9/0
ZeroDivisionError: division by zero

logical error
logical error

exception
exception

syntax error
syntax error

reserved word error
reserved word error

Answers

Answer:

Logical Error

Explanation:

The division by 0 is a logical error.

You join Mountain Water Co – an expanding bottled water company as an information security officer. The company wants to do a lot of advertising of its bottled water products through its website. The CEO asks you to review the company website and report if it is secure. After talking to the webmaster you find out the following:


The Web server accepts all connections


No authentication is required

Self-registration is allowed

The web server is connected to the Internet

Is the situation secure? Select all that apply.


a.

Yes. There is no threat to a bottled water company so it is secure.


b.

There is insufficient information available to answer this question.


c.

No. Anything that is connected to the Internet is insecure.


d.

No. The system is allowing everyone to register. Only individuals who are associated with the company should be able to register.


e.

No. If there is no authentication, then anyone with access to the website online can access it. For good security only individuals with certain authorized roles should access a website.

Answers

In regards to the above case, My response is c. No. Anything that is connected to the Internet is insecure.

What is meant by computer security?

Computer security is known to be a term that can be called cybersecurity. This is seen as a form of  protection of computer systems as well as information from any kind of harm, theft, as well as any form of unauthorized use.

Note that Computer hardware is seen to be protected by the same ways or methods that one uses to protect other valuable things.

In the above, there is no method of authentication and as such, In regards to the above case, My response is c. No. Anything that is connected to the Internet is insecure.

Learn more about Computer security from

https://brainly.com/question/25720881

#SPJ1

The ______________ and Internet connectivity provide the communication path and connection to the network.

Answers

Answer:

I chose router for this one too. I don't know if both the answers are router, but I got an A so it was either one was wrong or both were right.

Explanation:

The router and Internet connectivity provides the communication path and connection to the network.

What is internet connectivity?

Dial-up telephone lines, broadband connections that are constantly on, and wireless devices are all examples of "Internet connectivity," which is the phrase used to describe how individuals connect to the Internet. The most recent of them is a wireless connection to the Internet.

One or more packet-switched networks or subnetworks can be connected using a router. By sending data packets to their intended IP addresses, it manages traffic between different networks and permits several devices to share an Internet connection.

The router is a transformation of information from one to another packet.

Therefore, the router is the provider of connection to the network.

To learn more about internet connectivity, refer to the below link:

https://brainly.com/question/13600794

#SPJ2

How is the Agile way of working different?

Answers

Answer:

It is working within guidelines (of the task) but without boundaries (of how you achieve it).

Raw images can be processed again at a later date when new and improved software become available.
Group of answer choices

True

False

Answers

Answer:

True

Explanation:

what is paragraph indentation

Answers

Answer:

a blank space between a margin and the beginning of a line of text

Explanation:

The space before start start of your paragraph. Ex:what I did with the first sentence

list any three specification technology​

Answers

Answer:

descriptive, performance and detailed.

What are the 3 constraints for mineshaft headgear

Answers

The  3 constraints for mineshaft headgear

The ore, or metal often run out. There is issue of  Incompetence or faulty parts.Their structure can be complicated.What is Mine headgear constructions about?

Mine headgear constructions is known to be one that tends to aid the wheel method that is often used for suspending any kind of winding cables that moves workers and ore up as well as  down deep level shafts.

Note that the  The  3 constraints for mineshaft headgear

The ore, or metal often run out. There is issue of  Incompetence or faulty parts.Their structure can be complicated.

Learn more about mineshaft headgear from

https://brainly.com/question/24554365

#SPJ1

your University wants to create a new department for university alumni. Every
employee has their own system credentials and they can use these credentials on any system inside the
building. how can you ensure the system authorization, availability and monitoring.

Answers

The way to ensure the system authorization, availability and monitoring is that an efficient and effective online examination system be made or a system where all can clock in daily can be used.

What is system credentials?

The system credentials is seen as a kind of Credentials that is known to be used for the verification of peoples identity as well as been used as a tools for authentication.

Note that they can be part of a certificate or other authentication act that helps to know the identity of a user's and as such, The way to ensure the system authorization, availability and monitoring is that an efficient and effective online examination system be made or a system where all can clock in daily can be used.

Learn more about system credentials from

https://brainly.com/question/4670419

#SPJ1

Which of the following commands will visualise the running processes?

Select one:
a. Get-Process
b. Get-RunningProcesses
c. Show-Process

Answers

Answer:

A

Explanation:

The PS command displays your currently running processes in real-time. This will display the process for the current shell with four columns: PID returns the unique process ID.

A

It shows your current running instant in real-time

The Internet is the largest example of a _____?

Answers

Answer:

the answer is wide area network

Answer the following questions in your own words.
[tex] \\ \\ [/tex]
1. What is the difference between tools and equipment?

2. Describe the word paraphernalia.​​

Answers

1. A tool is something more specific, used to do work. Tools are always equipment, but a pice of equipment is not always a tool. For instance a hammer and a saw are tools, and if you’re planning to build something they are part of your equipment for the job

2. The separate real or personal property of a married woman that she can dispose of by will and sometimes according to common law during her life

The miniaturization of which of the following inventions allowed integrated circuits to get smaller, leading to the creation of the microprocessor?.

Answers

The miniaturization of microchip inventions allowed integrated circuits to get smaller and leads to the creation of the microprocessor.

What is Microprocessor?

A Microprocessor may be defined as a kind of miniature electronic device that significantly stores the arithmetic, logic, and control circuitry mandatory to carry out the functions of a digital computer's central processing unit.

Microchips are silicon devices that remarkably function as the central processing unit in the computer. These chips possess numerous electronic components which are utilized to carry out specific mathematical operations.

Along with this, these chips also migrate data from one memory location to another with the support of microprocessors.

Therefore, the miniaturization of microchip inventions allowed integrated circuits to get smaller and leads to the creation of the microprocessor.

To learn more about Microprocessors, refer to the link:

https://brainly.com/question/13164100

#SPJ1

Your question seems incomplete. The most probable complete question is as follows:

The miniaturization of which of the following inventions allowed integrated circuits to get smaller, leading to the creation of the microprocessor?

microchipelectronic circuitvacuum tubetransistor

A computer science degree does not typically give students the necessary skills to easily learn a new computer language. True or False.

Answers

Answer:

False

Explanation:

Which of the following information
is required by application programs
to access the content ofa file.
a. File name
b. File location
c. File extension
d. File size

Answers

An information which is required by application programs to access the content of a file is: c. File extension.

What is a file?

A file can be defined as a computer resource or type of document that avails an end user the ability to save or record data as a single unit on a computer storage device.

In Computer technology, a sequence which best reflects the size of various files and their extension on a computer system, from smallest to largest include the following:

Text (.txt)Compressed files (.zip)Picture (.jpeg)Audio (.mp3)Video (.mp4)

In conclusion, we can reasonably infer and logically deduce that an information which is required by application programs to access the content of a file is file extension because an error would occur if there's an incompatibility issue between the two resource.

Read more on file extensions here: brainly.com/question/1982059

#SPJ1

You do not need to cite anything used from creative commons.
True or False?

Answers

True. It is not necessary to cite information that is common knowledge. One of the ways to judge if something is common knowledge is to ask yourself if anyone in the field would know this information or if no one would argue against it.

Answer: False

Explanation: Creative commons is when a person uploads their own copyrighted content and gets license for it, so it other people online may add to it or alter it and re-share it. They get to decide how you get to use and what you are allowed to do with but no matter the situation you always have to give credit to the original content creator. Thus, false, you NEED to cite anything used from Creative Commons.

I want to know if C# can be used to solve questions here as well.

Answers

What exactly is the question that you’re asking what is C #?
Other Questions
Identify the lower class of Roman society, and explain how they were represented in the republican government. Are there anarchy countries to this day? if so, what country and who is the leader?? the time period during which production processes increase volume in order to meet customer demands while coping with quality problems and last-minute design changes is called Be and SOB Verb RevisionDirections: For each of the following sentences, bold the subject and underline the predicate. Then, revise the sentences to eliminate the be or SOB verbs by using strong action verbs. 1.Xiomara is a talented writer.Revised SentenceXiomara i2.The pages in the notebook are filled with writing. Revised Sentence3.Caridad and Xiomara are talkative. Revised Sentence4.Father Sean was very kind to Xiomara. Revised Sentence5.Her favorite food is apples. Revised Sentence6.Ms. Galiano is an English teacher. Revised Sentence A canister and the hydrogen gas it contains are at 100C. The canister is placed in a vacuum, and the temperature of the canister and gas begins to decrease. Which of the following statements of reasoning best explains how the canister-gas system loses energy?High-energy hydrogen molecules collide with lower-energy molecules and the walls inside the canister, losing energy during the collisions.High-energy hydrogen molecules collide with lower-energy molecules and the walls inside the canister, losing energy during the collisions.The molecules collide with the walls of the canister, causing the canister molecules to vibrate and carry energy from the canister to the canisters surroundings.The molecules collide with the walls of the canister, causing the canister molecules to vibrate and carry energy from the canister to the canisters surroundings.Energy is released from the canister as infrared radiation that can travel through the vacuum, causing a decrease in the average energy of the canister and the molecules.Energy is released from the canister as infrared radiation that can travel through the vacuum, causing a decrease in the average energy of the canister and the molecules.Energy is released from the canister and travels through the vacuum by convection, causing a decrease in the average energy of the canister and the molecules. A gram-positive bacterium suddenly acquires resistance to the antibiotic methicillin. This trait most likely occurred due to acquisition of new genetic information through. For the piecewise-defined function f(x) =7, x>35x-3, XS3find two x-values that have the same y-value and the sum of the x-values is 10.. today, many organizations can function and compete effectively without computer-based information systems. a crowd pen can provide comfort to the animals as they are worked through an alleyway and chute. never fill the crowd pen more than full. Can someone please help me write a poem about scientific law vs scientific theory? the spouse of a recently deceased client states, "i just can't believe he left me. he swore he would never leave me and i feel betrayed!" using kbler-ross stages of grief, what stage does the nurse identify the client is experiencing? A wrongful birth case was recently brought before a court in which a child with smith-lemli-opitz syndrome was born to apparently healthy parents. This syndrome is characterized by a cluster of birth defects including cleft palate, and an array of problems with the reproductive and urinary organs. Originally considered by their physician as having a nongenetic basis, the parents decided to have another child, who was also born with smith-lemli-opitz syndrome. In the role of a genetic counselor, instruct the court about what occurred, including the probability of the parents having two affected offspring, knowing that the disorder is inherited as a recessive trait. gary kelly, ceo of southwest airlines, talks to a group of reservation agents to acknowledge their contributions to the companys success. The average of five numbers is 72, two of them are 70 and 74. Find the average of the other three numbers. The weight limit for checked baggage at the airport is 50 pounds. What is the limit in kilograms?Answer Choices:A. 22.7 kgB. 50 kgC. 110 kg How do you think will be the effects of this project on the long-term profits of petron corporation aaron, brandon, and clara sit in class so that they are at the vertices of a triangle. it is 15 feet from aaron to brandon, and it is 8 feet from brandon to clara. give the range of possible distance from aaron to clara t is the outcome when production is efficient? when production is efficient, . a. some resources are unused or misallocated b. mario's can produce more pasta only by producing less pizza c. mario's can produce more pasta without producing less pizza d. there is no tradeoff between pizza and pasta 1. Read the thesis statement from a historical essay. Determine which type of claim the author is making(claim of fact, definition, policy, value, or cause and effect) and why the claim fits this designation.Finally, provide an example of the type of evidence the author should use to best support the claim. (4points)Washington, D.C., should not become the 51st state, because making our nation'scapital a state provides no economic benefits, nor did the Founding Fathers intendfor it to ever become a state. Glucose is a large molecule that needs help entering a cell. Which is the most likelypathway glucose will take to enter the cell?.