prrogram bai1;
var n,i:longint;
begin
write('N= ');
readln(n);
for i:=1 to n do
if i mod 2=1 then write(i, ');
readln
end.
program bai1;
var s,i,n:longint;
begin
repeat
write('N= ');
readln(n);
until n>0;
s:=0;
for i:=1 to n do
ì i mod 2=1 then s:=s+i;
write('Tong cac so s le la ',s);
redln
end.
Program Baitap;
Uses Crt;
Var i, Tong: Longint;
Begin
Clrscr;
Writeln('Nhap so N='); Readln(N);
Tong:=0;
For i := 1 to N do
If i mod 2 = 0 then;
Tong:=Tong+i;
Writeln('Ket qua',Tong);
Readln;
End.