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
sveticcg [70]
3 years ago
11

write a loop that reads positive integers from standard input and that terminates when it reads an integers that is not positive

. After the loop terminates , it prints out separate by a space on a single line
Computers and Technology
1 answer:
rjkz [21]3 years ago
7 0
I found this loop. But it ends like this: After the loop terminates, <span>it prints out the sum of all the even integers read. Declare any variables that are needed.</span>

<span>int sum=0;
int num=1;
while(num > 0){
cin >> num;
if ((num % 2)==0 & (num>0)){
sum+=num;
}
}
cout << sum;

I'm not familiar with coding but I think you can work on this loop and edit it according to your requirement.</span>
You might be interested in
The use of _______________ can validate input responses from clients and prevent certain attack methodologies
ElenaW [278]

Answer:

The use of Javascripts  can validate input responses from clients and prevent certain attack methodologies

Explanation:

A javascript is basically a “client-side scripting language” mostly use to capture data or to validate the response from the client in the client side. It avoids unnecessary transfer of information from client side to the server side, thus making the online web application to work faster. I

t is also used to add special effects or dynamic pages. It works well with HTML which is a language understood by the browser. So, a javascript is called by an element from the HTML. The function call is very similar to the function call made in the other programming languages.

4 0
3 years ago
Explain how will you know the number of slides used in the presentation.​
EastWind [94]
You can tell the number of slides used in a presentation by looking to the left of the screen on the title page and it will show you. This also depends on what site you are using
8 0
3 years ago
Which one of these is not an example of common presenter mistakes?
antoniya [11.8K]
A. not having enough detail
8 0
4 years ago
What will be printed when the method printstuff is called?
abruzzese [7]
Here is the correct answer of the given question above. The one that will be printed when the method printstuff is called is that there will be a compile error because a double cannot be assigned to an int <span>without a cast. Hope this answer helps. </span>
3 0
4 years ago
Choose 2 statements that correctly describe the time complexity of data structures with N data.
Rashid [163]

The  2 statements that correctly describe the time complexity of data structures with N data are:

  • The average time complexity of data structures with N data is O(N).
  • The average time complexity of inserting data into a heap is O(logN)

<h3>What is Time Complexity in the above case/</h3>

This is known to be the amount of times a specific instruction set is executed instead of the total time is taken.

Note that The  2 statements that correctly describe the time complexity of data structures with N data are:

  • The average time complexity of data structures with N data is O(N).
  • The average time complexity of inserting data into a heap is O(logN)

Learn more about data structure from

brainly.com/question/13147796

#SPJ1

8 0
2 years ago
Other questions:
  • What does a counterweight do for a mine winding system
    13·1 answer
  • Give an example of an expression that has three terms. The first term should have two factors, the second term should have three
    14·1 answer
  • Dummy activities A. are found in both AOA and AON networks. B. are used when two activities have identical starting and ending e
    9·2 answers
  • 1) a program that is designed to perform only one task.
    11·1 answer
  • Reesa works for a large real estate company. She is responsible for installing and supporting the company's internet systems, in
    5·1 answer
  • Code used when creating a hyperlink to a specific part of the same page.
    15·1 answer
  • Give one of user responsibility of the internet you should follow in cyberethics.
    5·2 answers
  • The area of ai that investigates methods of facilitating communication between computers and people is?.
    5·1 answer
  • The electors in each state shall have the qualifications requisite for electors of the most numerous branch of the state legisla
    11·1 answer
  • A _____ is a specially formatted file that, once mounted, or connected to a virtual machine appear and operate pretty much ident
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!