hello hello . please help me​

Hello Hello . Please Help Me

Answers

Answer 1

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

 int num, m=0, check=0;  

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;

 }


Related Questions

Which statement is true?
1)A deque is a type of collection,
2)A collection is a type of deque.
3)A list is a type of deque.
4)A deque is a type of list.

Answers

Answer:

1. A deque is a type of collection.

Explanation:

The statement that is true is as follows:

A deque is a type of collection.

Thus, the correct option for this question is A.

What is Deque?

Deque may be defined as an ordered and systematic collection of items similar to the queue. It is also known as a double-ended queue. It consists of two ends, a front, and a rear, and the items remain positioned in the collection.

According to the context of this question, a deque is a kind of collection that holds data and information identical to a queue. From here, elements can be added to or eliminated from either the front or back very efficiently.

It is also often called a head-tail linked list. Though properly this signifies specific data with appropriate structure that has been the implementation of a deque.

Therefore, a deque is a type of collection that is a true statement. Thus, the correct option for this question is A.

To learn more about Deque, refer to the link:

https://brainly.com/question/16750037

#SPJ2

What are url addresses for visiting websites? And what are the different parts of a URL? Answer it in a 1-2 paragraph

Answers

A URL is a website link which consists of //https and the title of the website you are going to. A URL helps guide and memorize certain links and websites. Also some URL links are fake and give false advertisement or false information especially when looking into things that happen everyday like the news. You can tell this by seeing if the url link is a trustworthy link. I hope this helps maybe you can expand on it if it’s not long enough

Answer:

Please read explanation

Explanation:

URL is the short form for "Uniform Resource Locator". A uniform resource locator tells the location of a website to the browser.

Parts of URL:

There are three main parts of URL

ProtocolDomain nameExtension

Protocol defines the type of protocol used for communicating with the website while the domain name is the name assigned to the IP address and the mapping is stored in domain name server and extension tells the type of website i.e.

.com means commercial

.org means non-profitable organization

.edu means educational website

An additional element is path which change with the website navigation.

Other Questions
US law enforcement has been expanding its use of drones for surveillance. However, very few privacy laws exist to limit how law enforcers can use these drones. Discuss your opinion about the increased use of drones. Do you think its an invasion of privacy? Estimate the percentage: 41 of 122 a. 0.3% c. 43.6% b. 33.3% d. 3% Explain Plz sb complete this for me What is the word blepice Meiosis results in? Parker grew21 inches each year for the past 3 years. How many inches total has Parker grown in the past 3 years A line with a slope of -7 passes through the points (-8, 7) and (-7, k). What is the value ofK? Write the name for the compound AlS Choose the best response to the following question.Which letter is NOT a Spanish letter?O IIOOrr 5. Past experience shows that the standard deviation of the distances traveled by consumers to patronize Chinese restaurants is 2 km. How large a sample is needed to estimate the population mean distance traveled to within 0.4 km Plzzzzzzz helppppppp Which is it? A,B,C or D solve and graph this equation. x - 1 help this is late...... 2. PART B: Which quote from the text best supports theanswer to Part A?A "And Scrooge's name was good upon 'Change, foranything he chose to put his hand to" (Paragraph 1)B "Scrooge and he were partners for I don't know howmany years" ( Paragraph 3)O c "No wind that blew was bitterer than he" (Paragraph 7)OD "But what did Scrooge care! It was the very thing heliked" ( Paragraph 9)nain I am from India my names is Mohammed Pinskovskis, so i have i german test.And one of thos question is "Was bedeutet schwul?Ist es cool, jemanden so anzurufen?''I need the answer today its 02.12.2020.This is not a joke by so!!! About the story the good body by eve ensler why does the narrator feel that way about her body why t.f he walking towards me like that Write the quadratic function f(x) = x2 + 8x + 3 in vertex form. Louisa spent 5/8 of an hour on math homework, 1/6 of an hour on science homework, and 7/12 of an hour on English homework. How much time total did she spend on homework? Pls help Thx