Armstrong Number using Class and Object in C++

Armstrong Number using Class and Object in C++

In this example, we are creating a program code to check Armstrong number using class and object in c++ programming.

Armstrong number program

Output 1

Enter a positive number : 153

Number is Armstrong

Output 2

Enter a positive number : 183

Number is not Armstrong

Output 3

Enter a positive number : 9474

Number is Armstrong

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top