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

How are mixtures and solutions alike
where do you suppose the term "massacre'' to describe this event came from
Explain how finding 4 x 384 can help you find 4 x 5384
Identify the adjective phrase in this sentence. The cricket beneath my window is singing me its evening song.
What is the square ceiling tile is 576
what is 3/5 divided by 93/10
7x+3=24 what is the value of 5-4x
Which words in this sentence are an independent clause? An American businessperson discovered a stockpile of King Tut's items that had been hidden in a safe tom
Given a cube with a volume of 27 cm3, what is the volume of a square pyramid that can fit perfectly inside the cube?
Find the reciprocal of the number. Multiply to check your answer. 2/3 A.1/2 B.3/2 C.2 D.3