Welcome to Westonci.ca, where you can find answers to all your questions from a community of experienced professionals. Get detailed and precise answers to your questions from a dedicated community of experts on our Q&A platform. Join our platform to connect with experts ready to provide precise answers to your questions in different areas.

write a while loop that subtracts 9 from userinput, assigns userinput with the difference, and outputs the updated userinput, followed by a newline. the loop iterates until userinput is less than or equal to 0.