Skip to content

Instantly share code, notes, and snippets.

@gevasiliou
Created October 7, 2016 07:17
Show Gist options
  • Save gevasiliou/2230bc798c6c31cc145c3d08c9074be1 to your computer and use it in GitHub Desktop.
Save gevasiliou/2230bc798c6c31cc145c3d08c9074be1 to your computer and use it in GitHub Desktop.
Program Lesson7_Program1;
Uses Crt;
Procedure DrawLine;
{This procedure helps me to avoid the rewriting the for loops}
Var Counter : Integer;
{Procedure Code Start}
Begin
textcolor(green);
For Counter := 1 to 10 do
Begin
Write(chr(196));
End;
End;
{Main Programm Start}
Begin
GotoXy(10,5);
DrawLine;
GotoXy(10,6);
DrawLine;
Readkey;
End
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment