Why is the array showing NaN instead of the numbers which I have written down in comment? Any explanation?
Please post your actual code instead of a picture. Thanks
What are the values of
Add the code, please
Your code is incorrect. For further feedback, copy and paste the lines of code into your response here on the forum inside a code click. (Or place three backticks on a line above and below the code block so it is formatted for the forum )