///Name: Ilana Levy ///Period: 5 ///Program Name: Number Puzzles III: Armstrong Numbers ///File Name: numPuzzlesIII.java ///Date Finished: 10/5/2015 public class numPuzzlesIII { public static void main( String[] args ) { for (int a = 1; a < 10; a++ ) { for (int b = 1; b < 10; b++ ) { for ( int c = 1; c < 10; c++ ) { int d = a * a * a, e = b * b * b, f = c * c * c, g = a * 100 + b * 10 + c; if ( (d + e + f) == g ) System.out.println( g ); } } } } }