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 equation C  (F  32) allows you to convert betweenCelsius and Fahrenheit temperatures. C is the temperature in degreesCelsius (°C) and F is the temperature i
72+4-14d=36 i need to show my work... i dont get it
what factor is paired with 5 to give 45
how do i factor the quadratic expression   4x^2-11x=3
A number multiplied by itself and then by itself again gives 1000. What is the number?
Level BPick any 2‐digit number where not all the digits are equal. Order the digits from highest to lowest to create the largest number. Next order the digits f
name two decimals that are equivalent to 7.75?
what is the number value of the 2's in 2,200
What is the scientific notation for 568 billion?
The process of grouping things based on their similarities is?