Armstrong NumberAn Armstrong number is the one whose value is equal to the sum of the cubes of its digits. 0, 1, 153, 371, 407, 471, etc are Armstrong numbers. For example, Logic:
Armstrong number in PHPBelow program checks whether 407 is Armstrong or not. Example: Output: Look at the above snapshot, the output displays that 407 is an Armstrong number. Armstrong number using Form in PHPA number is Armstrong or can also be checked using a form. Example: Output: On entering the number 371, we got the following output. On entering the number 9999, we got the following output. Next TopicPalindrome Number |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India