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

let f be a function defined by f (n) = 2f (n-1) + 3f (n-2), where f (1)=1 and f (2)=2. Determine f (5).
What qualities of sodium make it useful for this purpose?? 2 reasons
what is the formula for finding your maximum heart rate
How do I solve this equation for x?
A ______ is a computer that controls access to the hardware, software, and other resources on a network. mainframe server workstation handheld
Kelsey has a 88% discount coupon for a wedding store she seasonal prom dress that she wants to buy after the 80% discount was applied because he paid $30 for a
Up and Running Auto Shop is tracking their regular customers' data to see if there is a relationship between the life of a car's engine and the number of times
Y=2c+3 Y=-2c-3 What does c and y equal?
Which of the following statements is true about the American Board of Professional Psychology (ABPP)? A. The ABPP awards certification in over 30 different spec
He got it and he wore it and he tore it and he patched it, Which stylistic device is found in line 36? A) allusion B) inversion C) onomatopoeia D) repeti