Maximilian S.

asked • 01/29/17

basic python multiple question

This program should prompt the user to enter an exact multiple of 19 that is greater than 200. Then, the program should analyze the input and display a response to each of the four possible results of the analysis. See sample runs below.

Enter an exact multiple of 19 that is greater than 200 76
No, 76 is a multiple of 19 but it is not greater than 200
>>>
Enter an exact multiple of 19 that is greater than 200 55
55 is not over 200 and also is not a multiple of 19
>>>
Enter an exact multiple of 19 that is greater than 200 222
222 is over 200 but is not a multiple of 19
>>>
Enter an exact multiple of 19 that is greater than 200 380
Good input. 19 divides into 380 exactly 20 times

this is all i got so far its obviously horrible and not correct
value = float(input("Enter an exact multiple of 19 that is greater than 200:")) # prompt for one
for value in range(200):#test for one
if value > 200 and value %19 == 0:
print(value"is a good input!")
else:
print("the values are not a multiple of 19 or greater than 200")


1 Expert Answer

By:

David H. answered • 01/29/17

Tutor
5 (18)

Patient & Effective Math/Physics Tutor near Fort Worth

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.