This C program finds and prints Armstrong number between two numbers. This example prints Armstrong numbers from 1 to a number entered by the user.

**Armstrong number:** A number is called an Armstrong number, if the sum of cubes of each digit is equal to the *number* itself. For example, 153 is an Armstrong number because **153 = 1*1*1 + 5*5*5 + 3*3*3** .

**Program:** C program to print Armstrong numbers from 1 to 1000.

**Output:** Armstrong numbers from 1 to 1000

```
Enter the upper limit, N: 1000
All Armstrong numbers from 1 to 1000:
0 1 153 370 371 407
```

The same algorithm can be used to check whether a number is Armstrong number or not.

Share your code and queries in the comments.

Follow us on twitter.