Viết chương trình tính S=\(\frac{1}{1.2}+\frac{1}{2.3}+\frac{1}{3.4}+....+\frac{1}{99.100}\)
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.
program an_danh;
uses crt;
var kq:real;
i:integer;
begin
clrscr;
kq:= 1;
for i:= 1 to 99 do kq:= kq + (i / (i * (i + 1)));
write('M= ',kq:0:10);
readln
end.
program an_danh;
uses crt;
var kq:real;
i:integer;
begin
clrscr;
kq:= 1;
for i:= 1 to 99 do kq:= kq + (i / (i * (i + 1)));
write('M= ',kq:0:10);
readln
end.
\(=\left(\frac{1}{1.2}+\frac{1}{2.3}+...+\frac{1}{99.100}\right)-\left(\frac{1}{1.2.3}+\frac{1}{2.3.4}+...+\frac{1}{99.100.101}\right)\)
\(=\left(1-\frac{1}{2}+\frac{1}{2}-\frac{1}{3}+...+\frac{1}{99}-\frac{1}{100}\right)-\frac{1}{2}\left(\frac{1}{1.2}-\frac{1}{2.3}+\frac{1}{2.3}-\frac{1}{3.4}+...+\frac{1}{99.100}-\frac{1}{100.101}\right)\)
\(=\left(1-\frac{1}{100}\right)-\frac{1}{2}\left(\frac{1}{1.2}-\frac{1}{100.101}\right)\)
\(=\frac{99}{100}-\frac{1}{2}\cdot\frac{5049}{10100}=\frac{99}{100}-\frac{5049}{20200}=\frac{14949}{20200}\)
= 1 . 1/2 + 1/2 . 1/3 + ... + 1/99 . 1/100
= 1 . 1/100
= 1/100
SAI thi mai len bao sai cho nao nha !!!!
Ta có :
\(\frac{1}{1.2}+\frac{1}{2.3}+\frac{1}{3.4}+...+\frac{1}{98.99}+\frac{1}{99.100}\)
\(=\)\(\frac{1}{1}-\frac{1}{2}+\frac{1}{2}-\frac{1}{3}+\frac{1}{3}-\frac{1}{4}+...+\frac{1}{98}-\frac{1}{99}+\frac{1}{99}-\frac{1}{100}\)
\(=\)\(1-\frac{1}{100}\)
\(=\)\(\frac{99}{100}\)
Vậy \(\frac{1}{1.2}+\frac{1}{2.3}+\frac{1}{3.4}+...+\frac{1}{98.99}+\frac{1}{99.100}=\frac{99}{100}\)
Chúc bạn học tốt ~
\(\frac{1}{1\cdot2}+\frac{1}{2\cdot3}+...+\frac{1}{99\cdot100}=1-\frac{1}{2}+\frac{1}{2}-\frac{1}{3}+...+\frac{1}{99}-\frac{1}{100}\)
\(=1-\frac{1}{100}=\frac{99}{100}\)
ĐÚNG 100%
\(B=1-\frac{1}{2}+\frac{1}{3}-\frac{1}{4}+...+\frac{1}{99}-\frac{1}{100}\)
\(B=1+\frac{1}{2}+\frac{1}{3}+\frac{1}{4}+...+\frac{1}{100}-2.\left(\frac{1}{2}+\frac{1}{4}+...+\frac{1}{100}\right)\)
\(B=1+\frac{1}{2}+\frac{1}{3}+...+\frac{1}{100}-\left(1+\frac{1}{2}+\frac{1}{3}+...+\frac{1}{50}\right)\)
\(B=\frac{1}{51}+\frac{1}{52}+...+\frac{1}{100}\)
\(B< \frac{1}{60}+\frac{1}{60}+...+\frac{1}{60}\)
\(B< \frac{50}{60}\Leftrightarrow B< \frac{5}{6}\)
\(\frac{1}{1.2}+\frac{1}{2.3}+\frac{1}{3.4}+...+\frac{1}{99.100}\)
\(=\frac{1}{1}-\frac{1}{2}+\frac{1}{2}-\frac{1}{3}+\frac{1}{3}-\frac{1}{4}+...+\frac{1}{99}-\frac{1}{100}\)
\(=\frac{1}{1}-\frac{1}{100}\)
\(=\frac{99}{100}\)
\(\frac{1}{1.2}+\frac{1}{2.3}+\frac{1}{3.4}+.....+\frac{1}{99.100}\)
= \(1-\frac{1}{2}+\frac{1}{2}-\frac{1}{3}+\frac{1}{3}-\frac{1}{4}+....+\frac{1}{99}-\frac{1}{100}\)
= \(1-\frac{1}{100}\)
\(=\frac{99}{100}\)
\(\frac{1}{1.2}+\frac{1}{2.3}+\frac{1}{3.4}+...+\frac{1}{99.100}\)
\(=1-\frac{1}{2}+\frac{1}{2}-\frac{1}{3}+\frac{1}{3}-\frac{1}{4}+...+\frac{1}{99}-\frac{1}{100}\)
\(=1-\frac{1}{100}\)
\(=\frac{99}{100}\)
thấy đúng thì k cho mk nha mấy bạn
program Tinh_tong;
uses crt;
var S, i: longint;
begin
clrscr;
S:= 0;
i:=1;
For i:=1 to 99 do S:= S + 1/[i*(i+1)];
writeln('Tong cua S=', S);
Readln
End.
program Tinh_tong;
uses crt;
var S,i,n:longint;
begin
clrscr;
writeln('hay nhap n',); Readln(n);
S:=0;
i:=1;
For i:=\(\frac{1}{1.3}\)to\(\frac{1}{99.100}\) do \(S:=S+\frac{1}{99.100}\);
i:=i+1;
IF i<=n THEN writeln('Tong cua S=',A);
Readln
End.