69 757
Assignments Done
Successfully Done
In February 2019

Answer to Question #63958 in MatLAB | Mathematica | MathCAD | Maple for Jack

Question #63958
Create a function file called narcissisticNumbers.m.
Using for loop(s) or while loop(s), write a function narcissisticNumbers that returns all the narcissistic
numbers between 300 and 399 (there should be two).
a number n is called narcissistic if it satisfies the condition
n = dk
k + dk-1
k + ... + d2
k + d1
For example the 3-digit decimal number 153 is a narcissistic number because 153 = 13 + 53 + 33
Hint: 1) use a nested loop for all possible combinations of digits, or 2) use mod and fix/floor
Expert's answer

Not answered

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions