Enigmatics-Society / Algorithms-Hacktoberfest2k21

3 stars 12 forks source link

Create narcissisticnumber.c #23

Closed uthsavj closed 2 years ago

uthsavj commented 2 years ago

An n-digit number that is the sum of the nth powers of its digits is called a n-narcissistic number. For ex- N =371, it is a 3 digit number. 3^3+7^3+1^3=27+343+1=371 So, 371 is a 3-narcissistic number.