In this program an integer is accepted by the user and checked whether it is Armstrong Number or not.
An Armstrong number is a number such that the sum of its digits raised to the third power (i.e. n^3) is equal to the number itself.
For Example: Input: 153, Output: 153 is an Armstrong Number.
Since, 1^3+5^3+3^3 = 153 or 3^3+5^3+1^3 = 153.
An Armstrong number is a number such that the sum of its digits raised to the third power (i.e. n^3) is equal to the number itself.
For Example: Input: 153, Output: 153 is an Armstrong Number.
Since, 1^3+5^3+3^3 = 153 or 3^3+5^3+1^3 = 153.
Java Programming Memes and Stuff
In this program an integer is accepted by the user and checked whether it is Armstrong Number or not. An Armstrong number is a number such that the sum of its digits raised to the third power (i.e. n^3) is equal to the number itself. For Example: Input: 153โฆ
Here is the Output.
Java Programming Memes and Stuff
In this program an integer is inputed by the user and checked whether it is a Palindrome Number or not. A palindromic number is a number that remains the same when its digits are reversed. For Example: Input: 121 Output: 121 is a Palindrome Number.
Here is the Output.
