Multiple inheritance C+ Program Armstrong number of n digits

Write a program in C+ to check Armstrong’s number of n digits using multiple inheritances in object-oriented programming.

 

Output

check whether the number is Armstrong or not :

8 is not an Armstrong number :