Java Programming Memes and Stuff
In this program a number is entered by the user and it is checked whether it is Palindrome Number or Not. [A Palindrome 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.
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.