66.1k views
4 votes
Write a program that asks the user to input an integer named numdoubles.

a) Print("Enter an integer: ")
b) numdoubles = input("Enter an integer: ")
c) get_integer(numdoubles)
d) int(numdoubles) = input("Enter an integer: ")

1 Answer

2 votes

Final answer:

The correct answer is option b) numdoubles = input("Enter an integer:").

Step-by-step explanation:

The correct answer is option b program asks the user to input an integer using the input() function and stores the value in the variable numdoubles. The function input() allows the user to enter a value, and in this case, the prompt 'Enter an integer: ' will be displayed to the user. Once the user enters the value, it will be stored in the variable numdoubles.

User Paul Voss
by
8.0k points