Check weather the given number is an Armstrong Number or not. If the given number is an armstrong number then print YES otherwise print NO. Hint: If a number is 3 digit number and each of the digits is raised to the power of 3 and added to obtain a number, now if the added number is equals to the original number then the original number is an armstrong number. 153 1³ + 5³ + 3³ = 1 + 125 + 27 = 153 sample input: 153 sample output: YES sample input: 15 sample output: NO sample input: 1634 sample output: YES
Example heading with h2 size
Example heading with h3 size
Following is sample java code.
int i = 10;
if(i>0){
System.out.println('positive');
}