Write a C++ program to check Armstrong number in given range .Those numbers
which sum of its digits to power of number its digits is equal to that number are
known as Armstrong number.
EXAMPLE 1: 407
Total digits in 407=3
AND 43 + 03 + 73 = 64 + 0 + 343 = 407
Example 2: 1634
Total digits in 1634 is 4
1 + 1296 + 81 + 64 =1634
Examples of Armstrong numbers: 1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 1634, 8208,
9474, 54748, 92727, 93084, 548834, 1741725
Taimoor_4 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.