Question: How to do this in C++ 1. [10 points] Write a program to determine a person's magic number based on her age. The magic number

 How to do this in C++ 1. [10 points] Write a

How to do this in C++

1. [10 points] Write a program to determine a person's magic number based on her age. The magic number is the product of the digits of their age raised to the power of the sum of the digits of their age. So if the user is 23 then (2 x 3)+3 6 7776. Assume that the person'?s age is a 2-digit number such as 23, 04, etc. For example, What is your age in years? 23 Your magic number is 7776 What is your age in years?4 Your magic number is 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!