Look at this Pascal ( pseudocode ) program
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
Above is a Pseudocode of a program.
What is the sum of all the output of the
temp
variable ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Actually, you will get Narcissistic Numbers sequence with range [2,1000] .
So this is all the Narcisstic Numbers :
1 5 3 = 1 3 + 5 3 + 3 3 3 7 0 = 3 3 + 7 3 + 0 3 3 7 1 = 3 3 + 7 3 + 1 3 4 0 7 = 4 3 + 0 3 + 7 3
So the sum of all the output is 1 5 3 + 3 7 0 + 3 7 1 + 4 0 7 = 1 3 0 1 Hence, the result is 1301