Is this Armstrong number checking code perfect for 3 digits?

public class wow {
public static void main(int n) {
if (n>=100 && n<1000) {
System.out.println("Number selected: "+n);
int a=n%10;
int b=n/100;
int c=(n/10)%10;
int d=(aaa)+(bbb)+(ccc);
if (d == n) {
System.out.println("Armstrong");
} else {
System.out.println("Not Armstrong");
}
} else {
System.out.println("Invalid choice - pls enter a number from 100 to 999");
}
}
}
This is my code. Can anyone pls clarify and tell me what changes I can make to make the code much better?
Was this page helpful?