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

Why do we need joints that permit little to no movement in our skeletons?
What does Jason mean
A coil of wire that is carrying a current and produces a magnetic field is A. a galvanometer. B. a solenoid. C. a magnetic domain. D. an electric motor.
Resources are best described as (Points : 5) those basic inputs that a firm uses to conduct its business. only those features that are visible and easy to quant
This Chinese emperor wrote the most complete dictionary and ruled longer (sixty-one years) than any previous leader. Qianlong Kangzi Chou Hongwu
37546 rounded to nearest 10
A block has a mass of 20g and measures 2cmx4cmx2cm will it sink or float
what is 7 4/5 + 8 8/9
Which battle was the turning point in the Civil War? A. Battle of Antietam B. Battle of Fredericksburg C. Battle of Gettysburg D. Battle of Appomattox Courthous
How long did it take for the Olympic Games to spread?