jay-r wrote:
> As a beginner, I have a hard time solving this exercise. As I 
> mentioned before that I can make a square & rectangle but can't 
> figure out how to do a diagonal line using looping.
>   

The width of the line changes with the loop counter. Try writing it out 
on a piece of paper and coming up with a mathematical correlation 
between the two. Even if not precise, if you can get a diagonal line of 
some sort then you just need to tweak the parameters. After all, 
straight lines all have the form y = mx + b (or x = b but you already 
have that problem solved).

-- 
John Gaughan

Reply via email to