Answer to Question #96403 in Python for Bobby Zenchen

Question #96403
(d) If the user enters 1 and 10 for the first and last numbers in the range, what will be printed out at line 13? Which numbers is the program counting?


1. print (“This program prints selected numbers in in given range.”)
2. anotherGo = “Yes”
3. while AnotherGo == “Yes”
4. lowNumber = input (“Please enter first number in your chosen range.”)
5. highNumber = input (“Please enter the last number in your chosen range.”)
6. x = 0
7. for count = lowNumber to highNumber
8. if count MOD 5 <> 0) AND (count MOD 7 <> 0) then
9. print (count)
10. x = x + 1
11. endif
12. next count
13. print (x, “numbers”)
14. anotherGo = input (“Another go?”)
15. endwhile
1
Expert's answer
2019-10-14T04:44:59-0400
Dear Bobby Zenchen, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS