///Name: Prooz Fereydouni ///Period: 7 ///Project Name: Number Puzzles III: Armstrong Numbers ///File Name: NP3.java ///Date: 5/8/2016 public class NP3 { public static void main( String[] args) { for( int n = 1 ; n<=9 ; n=n+1 ) for( int m = 0 ; m<=9 ; m=m+1 ) for( int l = 0 ; l<=9 ; l=l+1 ) { int a = n*100 + m * 10 + l; int b = (n * n * n) + (m * m * m) + (l * l * l); if(a==b) System.out.println(a); } } }