ghostmkg / programming-language

You write code in any programming language you want. And push the code.
33 stars 79 forks source link

Added armstrong number checker in c++ language. #60

Closed AmanPatre closed 2 days ago

AmanPatre commented 3 days ago

I have added a code to check for armstrong number in c++ language.

An Armstrong number is a number that is equal to the sum of its digits, each raised to the power of the number of digits in the number. For example, 153 is an Armstrong number because 1^3 + 5^3 + 3^3 = 153.