i tried to think about how to print string but i didnt come to any conclusion please help.
How to print string instead of coordinate x & y
Impose some if else conditions. If x is positive, means you have to move towards east. So print E x number of times. If x is -ve then you would have to print W.
Similarly is y is +ve print N y number of times and so on…
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.