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
Bas_tet [7]
2 years ago
5

Write a loop that reads positive integers from console input, printing out those values that are even, separating them with spac

es, and that terminates when it reads an integer that is not positive. Declare any variables that are needed.
Computers and Technology
1 answer:
zvonat [6]2 years ago
4 0

Hello, since you did not specify a programming language, I wrote this algorithm in C++. Good luck!

<h2>Code:</h2>

#include <iostream>

#include <vector>

std::vector<int> v;

int main(int argc, char* argv[]) {

   while(1) {

   int temp;

   std::cout << "\nEnter a number: ";std::cin>>temp;

   

   if(temp<0) {

       std::cout << "\nEven number(s) is/are:\n---------------------\n";

       for(int i=0;i<v.size();i++) {

           if(v.at(i)%2==0) std::cout << v[i] << " ";

           else continue;

       }

       std::cout << std::endl;

       break;

   }else {

       v.push_back(temp);

   }

}

   return 0;

}

You might be interested in
The concept of taking traffic that’s all aimed at the same node and delivering it to the proper receiving service is known as
Cerrena [4.2K]

Answer:

"Demultiplexing" is the right answer.

Explanation:

  • A procedure for retransferring into genuine distinct, independent signals a transmission combining numerous digital as well as analog components, is considered as Demultiplexing.
  • Lending incoming different segments towards appropriate application-level procedures instead on the positive side of the recipient.
7 0
3 years ago
How do I find unwanted programs on my computer?
Nataliya [291]

To find unwanted programs on my computer, you can find them from either the start menu, setting, or control panel.

Regardless of how old or new your computer is, it will undoubtedly contain at least one program that you don't require. You might try a different site if you can't locate the method you're looking for because there are various ways to remove apps and programs. Be aware that some applications and programs are part of Windows and cannot be removed.

If a program is just not functioning as it should, you can try to repair it first.

  • From the Start menu, remove

Search for the app in the displayed list by selecting Start > All apps.

Select Uninstall by pressing and holding (or right-clicking) the application.

  • Remove in Settings

Start > Settings > Apps > Apps & features should be selected.

Locate the app you wish to uninstall, then choose More > Uninstall.

Please take note that not all apps can currently be removed from the Settings app.

Follow the uninstall instructions found in the Control Panel if you need assistance removing these apps.

  • Remove from the Control Panel

Enter Control Panel in the taskbar search box and choose it from the list of results.

program > programs and features.

Then choose to Uninstall or Uninstall/Change by pressing and holding (or right-clicking) on the software you wish to uninstall. then adhere to the on-screen instructions.

To learn more about Program click here:

brainly.com/question/24440921

#SPJ4

5 0
1 year ago
What should you remember when using the thesaurus to replace words?
Mariulka [41]
Use a complex word to add variety to your paper
5 0
4 years ago
Read 2 more answers
PYTHON
Korvikt [17]

Answer:

import random

print("Hello! I have a random number from 1 to 100! It is your job to try and guess it!")

number = random.randint(1,101)

guess = int(input("start to guess: "))

num_guesses = 1

while guess != number:

   if guess > number:

       print("lower")

       guess = int(input("try again: "))

       num_guesses +=1

   elif guess < number:

       print ("higher")

       guess = int(input("start to guess: "))

       num_guesses +=1

print("congrats it took you", num_guesses, "tries")

Explanation:

6 0
3 years ago
Machines may aid in making work easier over a longer distance. true or false.
Dmitry [639]
This seems like more of an opinion based question, but since they added "over a longer distance" If I were you I would go with false.
4 0
3 years ago
Other questions:
  • Each organization that provides host services on the public Internet is responsible for providing and maintaining DNS authoritat
    7·1 answer
  • What is the difference between chrome and chromium browser?
    9·1 answer
  • Hilary works at Klothes Kloset. She quickly helps the customers, and her cash drawer is always correct at the end of her shift.
    9·1 answer
  • What is the smallest unit of data on the hard drive?
    5·1 answer
  • ANSWER THIS CORRECTLY FOR BRAINLIEST
    13·2 answers
  • Which word processing file that contains text and other
    13·2 answers
  • While doing online research you enter this keyword search with a truncation character: man* Which of the following would not be
    15·1 answer
  • Write assembly programs with the following I/O
    15·1 answer
  • State True or False: 1. Application software can run without the presence of system software. 2. . A language processor translat
    14·1 answer
  • QUICK HELP ME PLEASE
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!