Question: Write a C+ program happy.cpp which reads numbers, one at a time, from the terminal input, and outputs x is happy or x is not

Write a C+ program happy.cpp which reads numbers, one at a time, from the terminal input, and outputs x is happy or x is not happy For example > happy 4 is not happy 1 is happy 1000 1000 is happy Your program should handle the calculation of happiness for all numbers between 1 and 2147483647 Your program should continue answering about the happiness of numbers until 0 is entered, at which time the program should exit silently 2.3 Restrictions You may include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
