Computer Science, asked by Hjstyle9989, 1 year ago

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 michaelmack99
8
in java or c program is it
Answered by sudipc96
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