Multilevel inheritance C+ Program Armstrong number of n digits

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

Output

check whether the number is Armstrong or not :

90 is not an Armstrong number :