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

The water table is the A. aquifer. B. lower boundary of the zone of saturation. C. upper boundary of the zone of saturation. D. zone of aeration.
A plant is starting to fall over because the plant can no longer support its own weight. Students want to find out why this is happening. Which of the following
what is the fraction form of 2.333
Why society might initially reject a new scientific theory?
The area of the base of a pyramid is 15 (square root 3)cm2. If the height of the pyramid is 4 cm, what is the volume of the pyramid? a. 20 cm3 b. 60 cm3 c. 120
use venerable in a short/easy sentene PLEASE HURRY (less than 12 words
The same force is applied to two skateboards. One rolls across the room and the other moves a few feet and comes to a stop. Where was there more work done? a.
Find the geometric mean between 7 & 11. Select one: a. 4√6 or appx. 9.8 b. 170/18 or appx 9.4 c. √77 or appx. 8.8 d. 9
Which version of the sentences uses the preposition to show location? a. The Unexpected blackout occurred near the masquerade ball b. The Unexpected blackout o
Fission of U-235 can produce: krypton strontium barium xeonon all of the above