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

Suppose That For A Certain Experiment P(A) = .47 And P(B) = .25 And P(A ∩ B) = .14. Find P(A ∪ B). .86 .36 .72 .58
2 When you drop a 0.37 kg apple, Earth ex- erts a force on it that accelerates it at 9.8 m/s² toward the earth's surface. According to New- ton's third law, the
Which pair(s) of points form a line with a negative slope? Select all that apply.
I need help solving this problem
3 √125 - 2 √45 + √20 - 2 √80
In the generic reaction: 5A + 2B --> 6C + 3D The molar mass of A is 146.70g/mol while the molar mass of C is 21.31g/mol. If 4.253 g of A reacts with an exces
abstract, concrete, countable/noncount nouns.
If the government taxed the production of pizzas, what would happen to the supply of Pizza
We have been stating the point to you in to reported speech
How can MARINA address the requirement of EMSA with its very own Board Examiners opposing the mandatory process of statistical validation of board exams?