Viết chương trình tính S=1.2.3+2.3.4+3.4.5+...+98.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.
Đặt S=1.2.3+2.3.4+...+98.99.100
=>4S=1.2.3.4+2.3.4.4+...+98.99.100.4
=>3S=1.2.3(4-0)+2.3.4(5-1)+....+98.99.100(101-97)
=>4S=1.2.3.4-0.1.2.3+2.3.4.5-1.2.3.4+....+98.99.100.101-97.98.99.100
=>4S=98.99.100.101
=>S=24497550
Đặt A=1.2.3+2.3.4+3.4.5+4.5.6+...+98.99.100
4A=(1.2.3+2.3.4+3.4.5+4.5.6+...+98.99.100)4
4A=1.2.3(4-0)+2.3.4(5-1)+3.4.5(6-2)+4.5.6(7-3)+...+98.99.100(101-97)
4A=1.2.3.4+2.3.4.5-1.2.3.4+3.4.5.6-2.3.4.5+4.5.6.7-3.4.5.6+...+98.99.100.101-97.98.99.100
4A=1.2.3.4-1.2.3.4+2.3.4.5-2.3.4.5+3.4.5.6-3.4.5.6+...+97.98.99.100-97.98.99.100+98.99.100.101
4A=98.99.100.101
=>A=98.99.100.101/4
Đặt S = 1.2.3 + 2.3.4 + 3.4.5 + .... + 98.99.100
=> 4S = 1.2.3.4 + 2.3.4.4 + 3.4.5.4 + ... + 98.99.100.4
=> 4S = 1.2.3.4 + 2.3.4.( 5 - 1 ) + 3.4.5.( 6 - 2 ) + .... + 98.99.100.( 101 - 97 )
=> 4S = 1.2.3.4 + 2.3.4.5 - 1.2.3.4 + 3.4.5.6 - 2.3.4.5 + .... + 98.99.100.101 - 97.98.99.100
=> 4S = ( 1.2.3.4 - 1.2.3.4 ) + ( 2.3.4.5 - 2.3.4.5 ) + ...... + ( 97.98.99.100 - 97.98.99.100 ) + 98.99.100.101
=> 4S = 98.99.100.101
=> S = \(\frac{98.99.100.101}{4}\)
=> S = 24497550
\(S=1.2.3+2.3.4+...+98.99.100.\)
\(\Rightarrow4S=4\left(1.2.3+2.3.4+...+98.99.100\right)\)
\(=1.2.3.4+2.3.4.4+...+98.99.100.4\)
\(=1.2.3.\left(4-0\right)+2.3.4.\left(5-1\right)+...+98.99.100.\left(101-97\right)\)
\(=1.2.3.4-0.1.2.3+2.3.4.5-1.2.3.4+...+98.99.100.101-97.98.99.100\)
\(=98.99.100.101\)
\(\Rightarrow S=\frac{98.99.100.101}{4}=24497550\)
Dat A=1.2.3+2.3.4+3.4.5+...+98.99.100
4A=1.2.3.4+2.3.4.4+3.4.5.4+...+98.99.100.4
4A=1.2.3.4+2.3.4.(5-1)+3.4.5.(6-2)+...+98.99.100.(101-97)
4A=1.2.3.4+2.3.4.5-1.2.3.4+3.4.5.6-2.3.4.5+...+98.99.100.101-97.98.99.100
4A=98.99.100.101
A=\(\frac{98.99.100.101}{4}\)
A=24497550
Ung ho minh nha
Tick minh thi may man ca nam do!!!!!
Tick minh nha Dinh Duc Hung
A=1(2+1)+2(3+1)+3(4+1)+...+99(100 +1 )
A=1.2+1+2.3+2+3.4+3...99.100+99
A=(1.2+2.3+3.4+...99.100)+(1+2+3+4...99)
giải:
Đặt A=1.2.3+2.3.4+3.4.5+4.5.6+...+98.99.100
4A=(1.2.3+2.3.4+3.4.5+4.5.6+...+98.99.100)4
4A=1.2.3(4-0)+2.3.4(5-1)+3.4.5(6-2)+4.5.6(7-3)+...+98.99.100(101-97)
4A=1.2.3.4+2.3.4.5-1.2.3.4+3.4.5.6-2.3.4.5+4.5.6.7-3.4.5.6+...+98.99.100.101-97.98.99.100
4A=1.2.3.4-1.2.3.4+2.3.4.5-2.3.4.5+3.4.5.6-3.4.5.6+...+97.98.99.100-97.98.99.100+98.99.100.101
4A=98.99.100.101
=>A=98.99.100.101/4
549 + X = 1326
X = 1326 - 549
X = 777
X - 636 = 5618
X = 5618 + 636
X = 6254
program tinh_tong ;
var i: integer; S: longint;
begin
S:= 0;
for i:= 1 to 98 do S:= S + i*(i+1)*(i+2);
writeln (' tong S la: ', S);
readln;
end.
program tinh tong ;
Var S,t: integer;
Begin
S:= 0;
For i:= 1 to 100 S:= S + i;
writeln (' tong cac so tu nhien tu 1 den 100');
Readln
End.