PROGRAM LOSER;
USES CRT ;
VAR
n : integer ;
BEGIN
clrscr;
writeln(' n = ' ) ; read ( n);
for i:=1 to n do
writeln (i);
readln ;
END.
var i,n,s: integer;
write (‘nhap n: ‘); readln (n);
for i:=1 to n do s:=s+i;
writeln (‘tong la: ‘,s);
program loser ;
uses crt ;
var
n : integer
begin
clrscr
writeln (' n =' ); read (n)
for i = 1 to (n) do
writeIn (i)
readIn
end