Single inheritance C+ Program Armstrong number of n digits

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

Output

check whether the number is Armstrong or not :

7 is not an Armstrong number :

Add a Comment