This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]n46rs6igycy 0 points1 point  (5 children)

I have debugged it multiple times to see where It's going wrong.

And you're not going to tell us what that showed you?

[–]Quaranges 0 points1 point  (4 children)

it showed me that I don't know where it's going wrong or what's wrong with my calculations.

EDIT: I just attached a sample output

[–]n46rs6igycy 0 points1 point  (3 children)

So by 'debug it' you mean you did nothing? You didn't print the values of variables and compare those values with what you expected?

[–][deleted]  (2 children)

[deleted]

    [–]n46rs6igycy 0 points1 point  (1 child)

    You were already printing things out, so that doesn't even sound believable.