Mong mọi người giúp em với ạ, mai em KT giữa kì
Hãy nhập câu hỏi của bạn vào đây, nếu là tài khoản VIP, bạn sẽ được ưu tiên trả lời.
uses crt;
var a:array[1..100]of integer;
i,n,t:integer;
begin
clrscr;
write('Nhap n='); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
t:=0;
for i:=1 to n do
t:=t+a[i];
writeln(t);
readln;
end.
a: \(P=\left(\dfrac{2}{\sqrt{x}-1}+\dfrac{\sqrt{x}}{\sqrt{x}+1}\right)\cdot\dfrac{\sqrt{x}}{x+\sqrt{x}+2}\)
\(=\dfrac{2\sqrt{x}+2+x-\sqrt{x}}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}\cdot\dfrac{\sqrt{x}}{x+\sqrt{x}+2}\)
\(=\dfrac{\sqrt{x}}{x-1}\)
\(P=\left(\dfrac{2}{\sqrt{x}-1}+\dfrac{\sqrt{x}}{\sqrt{x}+1}\right).\dfrac{\sqrt{x}}{x+\sqrt{x}+2}\)
\(\Rightarrow P=\dfrac{2\left(\sqrt{x}+1\right)+\sqrt{x}\left(\sqrt{x}-1\right)}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}.\dfrac{\sqrt{x}}{x+\sqrt{x}+2}\)
\(\Rightarrow P=\dfrac{x+\sqrt{x}+2}{\left(\sqrt{x}-1\right)\left(\sqrt{x}+1\right)}.\dfrac{\sqrt{x}}{x+\sqrt{x}+2}\)
\(\Rightarrow P=\dfrac{\sqrt{x}}{x-1}\)
\(\Rightarrow P=\dfrac{\sqrt{3+2\sqrt{2}}}{3+2\sqrt{2}-1}\)
\(\Rightarrow P=\dfrac{\sqrt{\left(\sqrt{2}+1\right)^2}}{2+2\sqrt{2}}\)
\(\Rightarrow P=\dfrac{\sqrt{2}+1}{2\left(\sqrt{2}+1\right)}\)
\(\Rightarrow P=\dfrac{1}{2}\)
5. Tea is not as good as coffee.
6. Lan is not as tall as Lan.
7. The bus isn't as fast as the train.
8. Motorbikes aren't as convenient as cars.
9. Her suitcase is not as big as his one.
10. Your backpack is not as new as mine.
35. Although Ben wanted to study in France, his French was bad.
36. The fastest way to travel from Ho Chi Minh City to Ha Noi is flying.
37. Jane has a small old white house.
38. Your brother is not as young as mine.
39. They don't have to work at weekends.
40. He was late again, so I was really angry.
\(P=\dfrac{x+2\sqrt{x}+x-2\sqrt{x}}{x-4}.\dfrac{x-4}{-2\sqrt{x}}=\dfrac{2x}{-2\sqrt{x}}=-\sqrt{x}\)
\(P=-\sqrt{x}=-\sqrt{4}=-2\left(đpcm\right)\)
uses crt;
var a:array[1..100]of integer;
i,n,t,t1,dem:integer;
begin
clrscr;
readln(n);
for i:=1 to n do readln(a[i]);
t:=0;
for i:=1 to n do
if a[i]>0 then t:=t+a[i];
t1:=0;
for i:=1 to n do
if (a[i]>0) and (a[i] mod 2<>0) then t1:=t1+a[i];
dem:=0;
for i:=1 to n do
if a[i]>0 then dem:=dem+1;
writeln(t);
writeln(t1);
writeln(dem1);
readln;
end.