109k views
10 votes
15 points! Introduction to Computer Science. (Picture included)

The user is told to guess a number between one and 10.
Which responses from the user could cause the program to halt with an error statement? Choose two options.

15 points! Introduction to Computer Science. (Picture included) The user is told to-example-1
User Tomturton
by
5.9k points

1 Answer

5 votes

Answer:

2.5, two

Step-by-step explanation:

Most likely user input should be of type int, which is whole numbers, so 2.5 (double/float) and two (string) are incorrect

User Jperras
by
6.4k points