Những câu hỏi liên quan
H24
Xem chi tiết
PG
3 tháng 7 2023 lúc 20:14

program tinh_ex;

var

       x, ex, gt: real;

       n, i: integer;

begin

       write('Nhap vao so x: '); readln(x);

       n := 10; (* so luong so hang *)

       ex := 1; gt := 1;

       for i := 1 to n do

       begin

              gt := gt * i; (* tinh giai thua i! *)

              ex := ex + power(x, i) / gt; (* tinh tong theo cong thuc *)

       end;

       writeln('Gia tri cua e^', x, ' la: ', ex);

       readln;

end.

Bình luận (0)
ND
3 tháng 7 2023 lúc 20:56

program tinh_e;
var x: real;
  n: integer;
  s, t: real;
  i: integer;
begin
  write('Nhap x: '); readln(x);
  write('Nhap n: '); readln(n);
  s := 1; t := 1;
  for i := 1 to n do
    begin
      t := t * x / i;
      s := s + t;
    end;
  writeln('e = ', s);
end.

 

Bình luận (0)
ND
3 tháng 7 2023 lúc 20:59

program Tinh_ex;

function TinhGiaiThua(n: Integer): Integer;

var i, giaiThua: Integer;

begin

giaiThua := 1;

for i := 1 to n do

giaiThua := giaiThua * i;

TinhGiaiThua := giaiThua;

end;

function TinhEx(x: Real; n: Integer): Real;

var i: Integer;

ex, phanTu: Real;

begin

ex := 1;

for i := 1 to n do

begin

phanTu := x / TinhGiaiThua(i);

ex := ex + phanTu; end;

TinhEx := ex;

end;

var x: Real;

n: Integer;

ketQua: Real;

begin

Write('Nhap gia tri cua x: ');

ReadLn(x);

Write('Nhap so luong phan tu n: ');

ReadLn(n);

ketQua := TinhEx(x, n);

WriteLn('Gia tri của ex la: ', ketQua:0:2);

end.

Bình luận (0)
LN
Xem chi tiết
LH
13 tháng 2 2017 lúc 22:23

A B C M E G F

GE // AM

\(\Rightarrow\frac{GE}{AM}=\frac{BE}{BM}\) ( Định lý Ta-lét )

Tương tự \(\frac{FE}{AM}=\frac{CE}{CM}=\frac{CE}{BM}\) ( Vì CM = CM )

Cộng các vế hai đẳng thức trên ta có : \(\frac{GE}{AM}+\frac{FE}{AM}=\frac{BE}{BM}+\frac{CE}{BM}\)

\(\Rightarrow\frac{FE+EG}{AM}=\frac{BC}{BM}=2\)

\(\Rightarrow FE+EG=2AM\)

Vậy ...

Bình luận (0)
VH
Xem chi tiết
1L
Xem chi tiết
KY
15 tháng 7 2021 lúc 11:51

EX 1Complete the sentences by using too, so, neither and either.

      1. Teenagers like K-pop, and they like Korean foods              too                . (too)

      2. He's not very good at painting walls, and she           isn’t either.               . (either)

      3. William doesn't work there, and John           doesn’t either.              . (either)

      4. My wife can't play the trump, and         neither can                    her sister. (neither)

      5. Alice has finished her homework, and           so has              Mickey. (so)

      6. Trang does morning exercise, and her brother              does too          . (too)

      7.   He is going to see that film, and we            are too            . (too)

      8. “Chèo” is considered a kind of traditional opera in Viet Nam, and "Cải lương"                  is too               . (too)

      9. I don't know how to use a computer, and my best friend                        doesn’t either         . (either)

      10. I haven't been to Africa, and                   neither has           my mother. (neither)

      11. Lan doesn't like rock music, and           neither does          Huong. (neither)

      12. Cuong didn't know the answer to the teacher's question, and Mai                  didn’t either.            . (either)

      13. Mr.Nam didn't win the race, and                     neither did             Mr Bac. (neither)

      14. My car doesn't work, and your car            doesn’t either.                 . (either)

      15. Nobody knew why he was absent, and I          didn’t either.                      . (either)

      16. Susie has passed her driving test, and          so has                Peter. (so)

      17. They mustn't stay up late, and their friends                mustn’t either.             . (either)

      18. They stayed at home last night, and their children        did too.                     . (too)

      19. They've been waiting, and              so has                 she. (so)

      20. We'd like to watch the football match, and he              would  too   . (too)

EX 2.   Complete sentences with “too" or “either”.

1. He does, too
2. I can, too
3. Nga didn't, either
4. he will, too
5. the ruler isn't, either
6. yesterday was, too
7. the girls don't, either
8. he doesn't, either
9.her brother does, too
10.  they did, too

Bình luận (0)
NT
Xem chi tiết
TH
20 tháng 11 2018 lúc 19:44

Excuse me

Bình luận (0)
MD
20 tháng 11 2018 lúc 19:44

EXCUSE...

Sao lại có 3 chữ nữa ở cuối nhỉ ???
meow~

Bình luận (0)
H24
20 tháng 11 2018 lúc 19:45

Bài làm

EX _ USE_ _ _.

EXCUSEME

SAi thì thôi

HỌc tốt

Bình luận (0)
HG
Xem chi tiết
HV
Xem chi tiết
DH
24 tháng 7 2021 lúc 15:22

1 I wish I had a washing machine 

2 I wish I lived near my work

3 I wish our garden got some sun

4 I wish I hadn't called him a lier

5 I wish I knew French

6 I wish I had booked a seat

7 I wish I could drive

8 I wish Tom drove more slowly

9 I wish you kept quiet

10 I wish he had worked harder during the term

11 I wish you came with us

12 I wish it stopped raining

13 I wish I could swim

14 I wish you waited for me

15 I wish I could help you now

Bài 2

1 knew

2 had gone

3 would lend

4 were

5 had spent

6 were lying

7 didn't have

8 lived

10 could speak

11 had visited

12 would play

13 could get

14 didn't complain

15 were

Bình luận (1)
VH
Xem chi tiết
HV
Xem chi tiết