https://github.com/letsdeepchat/armstrong-number-finder-using-java
https://github.com/letsdeepchat/armstrong-number-finder-using-java
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/letsdeepchat/armstrong-number-finder-using-java
- Owner: letsdeepchat
- Created: 2021-12-18T16:47:02.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-18T16:48:47.000Z (over 4 years ago)
- Last Synced: 2025-07-12T04:39:11.152Z (9 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Armstrong-number-Finder-using-Java
Armstrong number Finder
Given a number N, you need to check whether the given number is Armstrong number or not. Now what is Armstrong number let us see below: A number is said to Armstrong if it is equal to sum of cube of its digits.
Input
The first line of input contains a single Integer N
Output
You need to print 1 if given number is armstrong else print 0
Constraints:
1 <= N <= 10^4
Sample Input:
150
Sample Output:
0
Explaination
(1)^3 + (5)^3 + (0)^3 != 150 so it is not and armstrong number