krysycakes8556 krysycakes8556
  • 14-01-2021
  • Computers and Technology
contestada

Write code that outputs variable numDays as follows. End with a newline. If input is 3, output is: Days: 3

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 14-01-2021

Answer:

In C++:

#include<iostream>

using namespace std;

int main(){

int numDays;

cin>>numDays;

cout<<"Days: "<<numDays<<endl;

return 0;

}

Explanation:

This line declares numDays as integer

int numDays;

This line gets user input for numDays

cin>>numDays;

This line prints the required output and ends with a newline

cout<<"Days: "<<numDays<<endl;

Answer Link

Otras preguntas

What quantity can you tell you whether a solution is acid or basic
each branch of the US government, which enlightenment concept does this demonstrate
Danielle is planning a vacation and needs to purchase enough feed to fill the barrel in her pasture so that her horses will not be hungry while she is away. If
Solve using SYNTHETIC DIVISION (show each step). (a3 +5a2 +14a+16)÷(a+2) PLEASEEEEEE HELP
Your a GENIUS if you help me answer this!!!suppose you selected a random letter from the word Mississippi. WHAT is the probability of selecting the following le
Study the data set. What is the range? Click photo to enlarge ​
A parallelogram has a base of 4 and height of 7x-2. If the area of the parallelogram is 96 square units, what is the value of x to the nearest tenth? A) 2.3 B)
If you double a number and add 1 you get 11 what is the number
Express the shaded area as a fraction, a decimal, and a percent of the whole.​ please help me
simplify the following in the form of a + b √c2√2-7√8+4√½+8√32​