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

i had to write a new essay can y'all proofread it please: Most parents are unsure whether their student listening to music during class and while doing homew
How much is three fourths of 32 color tiles
The study of the history of Earth's magnetic field is known as
During the Civil War, both sides wanted to control the Mississippi River because it was
How many molecules are in 2.3 moles of h2o
Richard lives in Oregon. The longest day of the year for him will be during. A. June. B.December. C. January. D. September
What is 5 divided by 8765
Which biome would contain the most biodiversity in deciduous tree species? A) taiga B) savanna C) temperate forest Eliminate D) tropical rainforest
Match each scenario with the economic concept at play. 1.Jamie borrowed $10,000 from the bank. Eventually, the loan payments will total $11,156. 2.Super Soba no
Answer every question please.