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
slavikrds [6]
3 years ago
10

Write a program that allows the user to continuously input the value n until a negative number is entered

Computers and Technology
1 answer:
Paul [167]3 years ago
3 0

Answer:

Written in C++

Explanation:

#include <iostream>

using namespace std;

int main()

{

int n;

while(true)

{

cin>>n;

if(n>=0)

continue;

break;

}

return 0;

}

You might be interested in
We will pass in a value N. Ouput every even value between 0 and N. Tip: you may remember the modulo operator. 10 % 3 returns the
Taya2010 [7]

Answer:

def odd_even(N):

   for number in range(0, N+1):

       if number % 2 == 0:

           print(str(number) + " is even")

       elif number % 2 == 1:

           print(str(number) +" is odd")

odd_even(5)

Explanation:

- Create a method called odd_even that takes one parameter, N

- Initialize a for loop that iterates through 0 to N

Inside the loop, check if module of the number with respect to 2 is equal to 0. If yes, print it as even number. If module of the number with respect to 2 is equal to 1, print it as odd number

Call the method

6 0
3 years ago
If you wouldn't want someone to photograph you doing something, don't photograph someone else in that situation either. True Fal
Sunny_sXe [5.5K]

In the United States, it's illegal for a photographer to use someone's likeness ... Model release forms contain conditions on working with people, and in some ... You'll need this release form if you want to publish photos of another person's ... If you don't want to take any legal risks, then use a photo release form to be safe.

4 0
3 years ago
Which phrase is the best definition of sparklines in Excel 2016?
ddd [48]

Answer:

Option 2: a type of mini chart that users can insert into a worksheet

Explanation:

A graph or chart is used to show trends and changes in a dataset.

When we have to show trends or changes in MS Excel, there are a lot of options available. One of them is Sparklines. Sparklines are like mini charts that can be used to show data graphically.

Hence,

The correct answer is:

Option 2: a type of mini chart that users can insert into a worksheet

5 0
3 years ago
Read 2 more answers
After conducting interviews with several bad candidates, Althea, a manager at Langrover Inc. interviewed a candidate who was bet
nikdorinn [45]

Answer:

d. The contrast error

Explanation:

<u>Correct option is:</u>

d. The contrast error

  • <em>Contrast Error is a concept during a performance appraisal of a candidate where his/her valuation is impacted by the fact that the previous candidates were relatively good or bad. </em>

8 0
3 years ago
To generate integers between and including -10 to 10 you would use:
Ber [7]

Answer:

random.randint(-10,10)

Explanation:

5 0
3 years ago
Other questions:
  • Perform online research and learn about the elements of a presentation program interface not discussed in the lesson. Write a sh
    9·1 answer
  • What is the correct order of operations for protecting a critical section using a binary semaphore?
    15·1 answer
  • Which of the following is preventing the remote user from being able to access the workstation?
    6·1 answer
  • Does Android have text-to-voice?
    11·1 answer
  • Which of the followings is design tool?[2 marks]
    8·1 answer
  • In attempts to improve their contribution to the environment, a company decided to adapt to green computing. Which of these tech
    15·1 answer
  • What is true concerning physical and logical topologies? Physical topologies are concerned with how a network transfers frames.
    12·1 answer
  • The two primary methods of memory allocation are:
    6·1 answer
  • A Hospital wants to store different types of data I need to find the best storage device for each type and why what is the best
    14·1 answer
  • Como se juega robótica de cokitos
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!