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

A parabola opening up or down has vertex (0,-7) and passes through (4,-3). Write its equation in vertex form
I need help on Spanish from imperfect to preterite or preterite to imperfect ​
“what is the equation of a conic with vertices (-9,3) and (7,3) and foci (-5,3) and (3,3)”
The length of a rectangle is half the width. The area is 25 square meters
In ΔRST, the measure of ∠T=90°, the measure of ∠S=66°, and ST = 2.2 feet. Find the length of TR to the nearest tenth of a foot..
Why can carriers of disease be more dangerous than cases
Why did immigrants from Southern and Eastern Europe face harsher nativism than immigrants from northern and western Europe?
All New England was getting ready for war and needed: money food men ammunition
How can bonding determine the properties of a substance?
A spelunker (person who explores caves) determines that the cave entrance is located 349 m, 253° from her current position. How far south and how far west from