Sha256: 24585f9d95ca36fa6abf17152a51f034a488212a29f2caf3320394764771b4ab

Contents?: true

Size: 1.97 KB

Versions: 72

Compression:

Stored size: 1.97 KB

Contents

# Armstrong Numbers

An [Armstrong number](https://en.wikipedia.org/wiki/Narcissistic_number) is a number that is the sum of its own digits each raised to the power of the number of digits.

For example:

- 9 is an Armstrong number, because `9 = 9^1 = 9`
- 10 is *not* an Armstrong number, because `10 != 1^2 + 0^2 = 2`
- 153 is an Armstrong number, because: `153 = 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153`
- 154 is *not* an Armstrong number, because: `154 != 1^3 + 5^3 + 4^3 = 1 + 125 + 64 = 190`

Write some code to determine whether a number is an Armstrong number.

## Testing

In order to run the tests for this track, you will need to install
DUnitX. Please see the [installation](http://www.exercism.io/languages/delphi/installation) instructions for more information.

### Loading Exercises into Delphi

If Delphi is properly installed, and `*.dpr` file types have been associated with Delphi, then double clicking the supplied `*.dpr` file will start Delphi and load the exercise/project.  `control + F9` is the keyboard shortcut to compile the project or pressing `F9` will compile and run the project.

Alternatively you may opt to start Delphi and load your project via. the `File` drop down menu.

### When Questions Come Up
We monitor the [Pascal-Delphi](https://gitter.im/exercism/Pascal-Delphi) support room on [gitter.im](https://gitter.im) to help you with any questions that might arise.

### Submitting Exercises

Note that, when trying to submit an exercise, make sure the exercise file you're submitting is in the `exercism/delphi/<exerciseName>` directory.

For example, if you're submitting `ubob.pas` for the Bob exercise, the submit command would be something like `exercism submit <path_to_exercism_dir>/delphi/bob/ubob.pas`.

## Source

Wikipedia [https://en.wikipedia.org/wiki/Narcissistic_number](https://en.wikipedia.org/wiki/Narcissistic_number)

## Submitting Incomplete Solutions
It's possible to submit an incomplete solution so you can see how others have completed the exercise.

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
trackler-2.2.1.145 tracks/delphi/exercises/armstrong-numbers/README.md
trackler-2.2.1.144 tracks/delphi/exercises/armstrong-numbers/README.md
trackler-2.2.1.143 tracks/delphi/exercises/armstrong-numbers/README.md
trackler-2.2.1.142 tracks/delphi/exercises/armstrong-numbers/README.md
trackler-2.2.1.141 tracks/delphi/exercises/armstrong-numbers/README.md
trackler-2.2.1.140 tracks/delphi/exercises/armstrong-numbers/README.md
trackler-2.2.1.139 tracks/delphi/exercises/armstrong-numbers/README.md
trackler-2.2.1.138 tracks/delphi/exercises/armstrong-numbers/README.md
trackler-2.2.1.137 tracks/delphi/exercises/armstrong-numbers/README.md
trackler-2.2.1.136 tracks/delphi/exercises/armstrong-numbers/README.md
trackler-2.2.1.135 tracks/delphi/exercises/armstrong-numbers/README.md
trackler-2.2.1.134 tracks/delphi/exercises/armstrong-numbers/README.md
trackler-2.2.1.133 tracks/delphi/exercises/armstrong-numbers/README.md
trackler-2.2.1.132 tracks/delphi/exercises/armstrong-numbers/README.md
trackler-2.2.1.131 tracks/delphi/exercises/armstrong-numbers/README.md
trackler-2.2.1.130 tracks/delphi/exercises/armstrong-numbers/README.md
trackler-2.2.1.129 tracks/delphi/exercises/armstrong-numbers/README.md
trackler-2.2.1.128 tracks/delphi/exercises/armstrong-numbers/README.md
trackler-2.2.1.127 tracks/delphi/exercises/armstrong-numbers/README.md
trackler-2.2.1.126 tracks/delphi/exercises/armstrong-numbers/README.md