#include int main () { int i; for (i = 1; i < 999; i++) { int ones = i % 10; int tens = (i / 10) % 10; int hundreds = (i / 100) % 10; int armstrong; armstrong = ones * ones * ones; armstrong += tens * tens * tens; armstrong += hundreds * hundreds * hundreds; if (i == armstrong) { printf ("%d is an armstrong number.\n", i); } } return 0; }