i dont how to make a diagonal line using FOR LOOP.. were just using <stdio.h>, <conio.h>, <dos.h>.. please help me :( because out professor didnt teach us how to do a diagonal line
i want to make a program like this(PLEASE IGNORE THE DOTS):
(there should be two triangles where the angle of the first triangle intersects with the angle of the second triangle.. )
Using the same gotoxy command, you would add 3 to the x, and 1 to the y location to go down the screen, or subtract 1 from the y location, to go up the screen, like so..
Or, if you wanted just two large triangles that don't start at the corners of the two center lines, just add x to the column starting position. Hope this helps you..
thank you for help.. it helped me alot.. but i was a little bit confused then i ask my classmate on what you mean add 3 to the x, then he explained it to me very well..