Assignemnt #118 and Number Puzzle III

Code

    
    ///name: Ben Borglin
    ///period: 6
    ///program name: Number Puzzle III
    ///file name: NP3.java
    ///date finished: 5/6/16
    
    public class NP3
    {
        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 number = (100 * a) + (10 * b) + c;
                        int total = (a * a * a) + (b * b * b) + (c * c * c);
                        
                        if (number == total)
                        {
                            System.out.println(a + "" + b + "" + c);
                        }
                    }
                }
            }
        }
    }
    
    Assignment 118