Menu

(Solved) : 4 25 Marks Asked Write Program First Calculates Prints Sum Digits Number 7 Digits Prints D Q44054701 . . .

4. (25 marks) You are asked to write a program, which first calculates and prints out the sum of the digits of a number withC++ , well oragnized and good structure pleasethanks4. (25 marks) You are asked to write a program, which first calculates and prints out the sum of the digits of a number with at most 7 digits. Then it prints out all the divisors of the sum number that is calculated in the previous step. The output should look like this: Enter a number with at most 7-digits: 1259955 Sum of the digits of 1259955 is: 36 The divisors of 36 are as follows: 1 2 3 4 6 9 12 18 36 Show transcribed image text 4. (25 marks) You are asked to write a program, which first calculates and prints out the sum of the digits of a number with at most 7 digits. Then it prints out all the divisors of the sum number that is calculated in the previous step. The output should look like this: Enter a number with at most 7-digits: 1259955 Sum of the digits of 1259955 is: 36 The divisors of 36 are as follows: 1 2 3 4 6 9 12 18 36

Expert Answer


Answer to 4. (25 marks) You are asked to write a program, which first calculates and prints out the sum of the digits of a number …

OR