“Programcılar için Pascal Hile Yaprakları” Kodu Cevaplar
Programcılar için Pascal Hile Yaprakları
while condition do begin statement(s) end; while condition do statement;
Programcılar için Pascal Hile Yaprakları
program Addition; // Link the SysUtils file for access to file handling routines uses SysUtils; // Declare some variables var LIn, LOut: Text; // References to the input and output files LVar1, LVar2: integer; // The two values that are to be added together LResult: integer; // The result begin // Open the input file Assign(LIn, 'addin.txt'); Reset(LIn); // Read the input values ReadLn(LIn, LVar1, LVar2); // Open the output file Assign(LOut, 'addout.txt'); ReWrite(LOut); // Calculate the result LResult:= LVar1 + LVar2; // Write to output file WriteLn(LOut, LResult); // Cleanup CloseFile(LIn); CloseFile(LOut); end.
Programcılar İçin Pascal Hile Yaprakları
with variable do begin statement(s) end; with variable do statement;
Programcılar için Pascal Hile Yaprakları
if condition then begin statement(s) end; if condition then statement;