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](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/10/6703ff1ceec37_1646703ff1c6766a.jpg)
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
Get step-by-step solutions from verified subject matter experts
