Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

complete in c++ An integer n is divisible by 9 if the sum of its digits is divisible by 9. Write a program to prompt

complete in c++

image text in transcribed

An integer n is divisible by 9 if the sum of its digits is divisible by 9. Write a program to prompt user for an integer number, display each digit on a new line, starting with the rightmost digit. Your program should also determine whether the number is divisible by 9. Here are two sample runs: Please enter an integer number: 180 180 is divisible by 9. Please enter an integer number: 456 456 is not divisible by 9

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions