Write a program to find whether a number is glimmer or not. if the sum of fourth power of individual digits of a number is equal to the number itself, then it is called glimmer
Answers
Answered by
8
in java or c program is it
Answered by
0
Answer:
n=int(input())
n1=n
s=0
while(n>0):
rem=n%10
s=s+(rem**4)
n=n//10
if(s==n1):
print("Glimmer number")
else:
print("not glimmer number")
Explanation:
This is a python program in which we check each digits from the back and take fourth power of it and add and if that is equal to original number then it is a glimmer number
Similar questions
Hindi,
8 months ago
Science,
8 months ago
India Languages,
8 months ago
Physics,
1 year ago
Computer Science,
1 year ago
Art,
1 year ago
Physics,
1 year ago
Physics,
1 year ago