K
Khách

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.

19 tháng 6 2019

Đáp án đúng : C

3 tháng 5 2019

Đáp án đúng : D

27 tháng 8 2019

Đáp án đúng : D

18 tháng 4 2020
Thủ tục Kết quả
Delete (s,3,1); VuSieu
Delete(s,3,7); Vu
Delete(s,7,3); Vu Sie
Insert(s2,s,1); Vo Vu Sieu
Insert(s2,s,7); Vu SieVo u
Insert(s2,s,3); VuVo Sieu
Copy(s,3,4) Sie
Copy(s,7,1) u
Copy(s,7,7) u
Copy(s,7,8) u
Length(s) 7
Pos(s2,s) 0
Pos(‘ ‘,s) 3
Pos(‘Si’,s) 4
Pos(‘si’,s) 0
Upcase('a') A
Upcase('A') A
S1:='v'; v
Upcase(s1) VU SIEU
Length(s2) 3
25 tháng 12 2019

1: tính tổng của \(S=1+\frac{1}{2^2}+\frac{1}{3^2}+\frac{1}{4^2}+...+\frac{1}{100^2}\)

uses crt;

var s:real;

i:integer;

begin

clrscr;

s:=0;

for i:=1 to 100 do

s:=s+1/(sqr(i));

writeln('tong cua day so la: ',s);

readln;

end.

2: tính tổng \(S=1+\frac{1}{3^2}+\frac{1}{5^2}+\frac{1}{7^2}+...+\frac{1}{n^2}\)

uses crt;

var s:real;

n,i:integer;

begin

clrscr;

write('n='); readln(n);

s:=0;

for i:=1 to n do

if i mod 2=1 then s:=s+1/(sqr(i));

writeln('tong cua day so la: ',s:4:2);

readln;

end.

25 tháng 12 2019

Hỏi đáp Tin họcHỏi đáp Tin học

18 tháng 3 2022

d

20 tháng 6 2017

Đáp án đúng : D

9 tháng 12 2019

Đáp án đúng : C

7 tháng 4

def generate_sequence(n):

"""Generates the sequence A up to the nth term."""


if n < 0:

return "Please enter a non-negative number."


sequence = [] # This list will hold our sequence


if n >= 0:

sequence.append(1) # A[0] = 1


if n >= 1:

sequence.append(3) # A[1] = 3


for i in range(2, n + 1):

# Calculate A[i] using the rule: A[i] = A[i-1] * 2 * A[i-2]

next_term = sequence[i - 1] * 2 * sequence[i - 2]

sequence.append(next_term)


return sequence


# Let's see the sequence up to the 5th term (A[0] to A[5])

result = generate_sequence(5)

print(result) # Output: [1, 3, 6, 36, 432, 31104]