Skip to content

letsdeepchat/Armstrong-number-Finder-using-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors