HOC24
Lớp học
Môn học
Chủ đề / Chương
Bài học
Var n , i , d : integer;
Begin
write ('n=') ; read (n);
d:=0;
For i:=1 to n do
If i mod 2 = 0 then d:= d+1;
Write (d);
Readln;
End.
Var i, n : integer;
S : real;
Write (‘n=’); read(n);
S:=1;
For i:= 1 to n do S:= S + 1/(i+2);
Write(S);
Var i , x : integer;
write (' x = '); read (x);
S:=0;
For i:=1 to x do S:= S+i;
Write (S);
Var n, i : integer ;
NT : Real;
write ( ' n = ' ) ; read (n);
NT := TRUE ;
If n<2 then NT := FALSE ;
For i:= 2 to n div 2 do
If n mod i=0 then NT:= FALSE ;
Var i , n : integer ;
write ( 'n =') ; read (n) ;
S:= 0;
For i:=1 to n do S : = S + 1/i;
Writeln (S);
a.
Var i : integer;
For i:=1 to 100 do S:= S + i;
b.
For i:=1 to 10 do S:= S + 1/i;
c.
Var i,n : integer;
write ('n = '); read (n);
For i:=1 to n do S:= S + i;
d.
For i:=1 to n do S:= S + 1/i;
CHO TAM GIÁC ABC CÓ AB<AC VÀ GÓC A = 60 ĐỘ . GỌI D LÀ TRUNG ĐIỂM CỦA AC VÀ KẺ CE VUÔNG GÓC VỚI AB CHỨNG MINH : ADE ĐỀU . GIÚP ĐI
mk làm n phần tử nha
Var i , x , n : integer;
a : array [1..100] of integer ;
begin
write (' n = ') ; read (n);
x:=0;
writeln ('a [ ' , i , '] ');
readln (a[i]);
end;
If (a [ i ] mod 2<> 0 ) then x:= x+a[i]);
write(' tong cac so le la ' ,x);