Regards pascal mania, good afternoon lovers Turbo Pascal, on this happy occasion I will write code to make our writing will be on the middle of the page program in turbo pascal 7.0. text placement amid we usually use to write a program title that we make, in our text positioned at the center position is not difficult, we just asked to enter the code "gotoxy." and write in the columns and rows later to how we write a text. just follow these steps carefully.
How to create a writing program at the center / center:
- Please open your program Turbo Pascal 7.0.
- Select the file - new.
- Then write the code below:
- Then compile - compile or alt + f9 to make sure there are no errors in your program code.
- If there are no errors please select run - run.
- Congratulations you can make your program into position in the middle of text.
program gotoxy;
uses crt;
begin
clrscr;
gotoxy(18,2);
writeln('I'm learning to make the writing is in the middle');
gotoxy(25,3);
writeln('In NewsBlogs21.blogspot.com');
readln;
end.
uses crt;
begin
clrscr;
gotoxy(18,2);
writeln('I'm learning to make the writing is in the middle');
gotoxy(25,3);
writeln('In NewsBlogs21.blogspot.com');
readln;
end.
Description:
- marked in red is the core code of the program, which is to insert columns and rows which one we will use to put the text.
- marked with a blue column layout to what is the position that we will put the text we create later.
- marked with a green line to what is the location of the position that we will put the text we create later.
* Greeting pascal mania and may be useful.
0 Response to "how to make text position amid the TURBO PASCAL 7.0"
Post a Comment