Assignment #118 and Number Puzzles III: Armstrong Numbers

Code

    ///Name: Ali Kurland
    /// Period: 6
    /// Program Name: Number Puzzles III: Armstrong Numbers
    /// File Name: Armstrong.java
    /// Date Finished: 4/12/2016
    
    public class Armstrong
    {
    	public static void main( String[] args )
    	{
            for ( int a=1; a<10; a++ )
                for ( int b=0; b<10; b++ )
                    for ( int c=0; c<10; c++ )
                    {
                        int d = (100*a) + (10*b) + c;
                        int e = (a*a*a) + (b*b*b) + (c*c*c);
                        if ( d == e )
                            System.out.println( d + "\n" );
                    }
        }
    }
    

Picture of the output

Assignment 118