Once more, please put your code into code tags to show the right indentation, see:
http://www.daniweb.com/techtalkforum...ment114-3.html
Most people will not read any of your code unless you do that!
Your first program worked just fine, why did you change it?
This program will give you error, because you are giving it negative windspeeds! Use more meaningful variable names, t and v rather than x and y and you discover your mistakes!
Also newline is \n
Reputation Points: 404
Solved Threads: 180
Nearly a Posting Virtuoso
Offline 1,422 posts
since Jul 2005