Shortest road trip incomplete ans

How I can show my ans as SE or NW .

Hi @mangla.chirag, if you want to do that then apply simple maths. Like when will you know that direction is NE. It will be when tanθ i.e. x/y will be 1 or near to 1. Now you just have to check which direction it is. Apply if else on x & y. Wether they are negative or positive .

I hope you got my hint. Hope this helps :slight_smile: