binzuka binzuka
  • 14-07-2021
  • Computers and Technology
contestada

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

Respuesta :

rajavamsi566
rajavamsi566 rajavamsi566
  • 14-07-2021

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;

}

Answer Link

Otras preguntas

Jazz is a high-end handbag manufacturing firm based in Italy. It has achieved peak sales and profits in the home-country market. Jazz now wants to cater to the
Poor working conditions for factory workers in the late 1800's gave rise to what idea? A. The work week should be seven days. B. The hours worked each day neede
One important factor in the rise of African American incarceration since the 1980s was the so-called _________undertaken during the presidency of Ronald Reagan.
Which revisions clarify the sentence? My oldest cousin, Kate, and my youngest cousin, Sue, moved to a farm when she was eight. Select the two correct answers. M
A sense of equilibrium of visual weight in a work of art or design is the design principle called balance. true or false
The supermarket has 10 aisles. 1 of the aisles is empty. What percentage of the aisles are empty? Write your answer using a percent sign (%).
Help plsss! this is journalism
HELP ASAP PLSSSSS I NEED IT
What are two types of evidence that support the hypothesis that earth and the rest of the solar system was formed by a condensing nebula
Find the area of a triangle with vertices (1, -1), (7,5), (1, 7).