asked 114k views
14 votes
Ask “how many negatives did you get?” if answer is 1, display prompt 10 times. Else if answer is 2, display reminder 50 times, else if answer is 3, display warning 100 times, else display removal 500 times.

answer asap

asked
User Gaarv
by
8.7k points

1 Answer

4 votes

Answer:

# This program is written in python.

x = input("How many negatives did you get?\\")

if x == "1":

for i in range (10):

print("prompt")

elif x == "2":

for i in range (50):

print("reminder")

elif x == "3":

for i in range (100):

print("warning")

else:

for i in range (500):

print("removal")

answered
User Bill Yan
by
8.2k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.

Categories