Question: i wrote the program but i get an error on the second page. I don't know how to fix it. 5.01) An integer n is


i wrote the program but i get an error on the second page. I don't know how to fix it.
5.01) An integer n is divisible by 9 if the sum of its digits is divisible by 9 . Write a program to display each digit, in new line, starting with the rightmost digit. Your program should also determine whether or not the number is divisible by 9. Hint: Use the \% operator to get each digit; then use / to remove that digit. So 154368%10 gives 8 and 154368/10 gives 15436. The next digit extracted should be 6 , then 3 and so on. SAMPLE RUN \#4: / DivisibleByNine Highlight: Show Highlighted Only Enter an integer to check-divisibility by 9:180 0 8 1 Divisible by +9d 14of14:2023-02-0719:32:01- roblems Detected: The contents of your standard output is incorrect. Given the following was entered from the keyboard: 9 you displayed: Enter an integer to check divisibility by 9: n9 9 9is.divisible by 9 instead of: Enter an integer to check divisibility by 9:9 Divisible by 9 Failed 4 out of 4 test runs. Failed Test Run \# 1 The contents of your standard output is incorrect
Step by Step Solution
There are 3 Steps involved in it
The issue youre facing appears to be with the formatting of your output which doesnt match the expected output in terms of both the text displayed and ... View full answer
Get step-by-step solutions from verified subject matter experts
