How to use lazarus software as pascal programming:
That is how to use lazarus software as pascal programming, hopefully useful
- Open lazarus software
- On menu, choose File => Project => Program => OK
- Body of program is located between begin and end.
program Project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes
{ you can add units after this };
begin
end.
Example:
program Project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes
{ you can add units after this };
begin
writeln('Assalamu ',#39,'alaikum');
readln
end.
- Variable is located above of begin
program Project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes
{ you can add units after this };
Var
a,b:integer;
begin
writeln('Assalamu ',#39,'alaikum');
write('input a number! '); readln(a);
write('input a number again! '); readln(b);
writeln(a,' + ',b,' = ',a+b);
readln
end.
- To check syntx/script, on menu, choose Run => Compile, to show the result: Run => Run
That is how to use lazarus software as pascal programming, hopefully useful
1 komentar:
Kunjungi juga
www.menarikeuy.com
Posting Komentar