shelbyjohnson6831 shelbyjohnson6831
  • 23-02-2021
  • Computers and Technology
contestada

Our tests will run your program with input 2, then run again with input 5. Your program should work for any input, though.

Write code that outputs variable numDays. End with a newline

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 24-02-2021

Answer:

In Python:

numDays = int(input("Days: "))

print("Number of days: "+str(numDays)+"\n")

Explanation:

The program was written in Python and the explanation is as follows;

First, get the input for the number of days from the user

numDays = int(input("Days: "))

Next, print string "Number of days: " followed by the number input from the user and then newline

print("Number of days: "+str(numDays)+"\n")

The character \n represents new line

Answer Link

Otras preguntas

the gas that has smell of rotten eggs is​
how corrosion occurs​
e pres eir as writte answers with a friend. No. I is done as an example for you. 1. Look at that! A new shopping centre (build) in this street. Ans. Look at tha
Which of the following methods is a qualitative approach? a. A researcher sorts participants out according to gender b. A researcher compares maternal mortali
Solve for x in the triangle. Round your answer to the nearest tent
if (a + 2/a ) = 3 then the value of (a =2/a ) will be​
put 1,200 in words spelling
solve diagram 4 shows a mural in a shape of abcd
Which set of box plots demonstrates that two data distributions could have a low percentage of overlap even though they have the same median, same range, and sa
Please answer this question​