C++ Exercises: Generate and show the first 15 Narcissistic decimal numbers
13. First 15 Narcissistic Decimal Numbers
Write a program in C++ to generate and show the first 15 Narcissistic decimal numbers.
Visual Presentation:

Sample Solution:
C++ Code :
Sample Output:
Find the first 15 narcissistic decimal numbers: ----------------------------------------------------- The first 15 narcissistic decimal numbers are: 1 2 3 4 5 6 7 8 9 153 370 371 407 1634 8208
Flowchart:

For more Practice: Solve these Related Problems:
- Write a C++ program to compute and display the first 15 narcissistic numbers using power functions.
- Write a C++ program to verify narcissistic numbers by decomposing the number into digits and summing powered values.
- Write a C++ program to generate narcissistic numbers with optimized exponentiation and digit extraction.
- Write a C++ program to find the first 15 narcissistic numbers using STL algorithms and lambda functions.
C++ Code Editor:
Contribute your code and comments through Disqus.
Previous: Write a program in C++ to find the Lychrel numbers and the number of Lychrel number within the range 1 to 1000 (after 500 iteration).
Next: Write a program in C++ to display the first 10 Lucus numbers.
What is the difficulty level of this exercise?