Viết chương trình 1+2+3+...+1/t. Hôm nay cô cho bài này để ôn mai tớ thi r
Mọi người giúp e bài này với ạ. Mai e phải thi rồi
II. Tự luận
Bài 1: Viết chương trình có sử dụng hàm đưa ra màn hình số lượng các số nguyên tố từ 20 đến 50
Bài 2: Viết chương trình có sử dụng hàm tính giai thừa của 1 số nguyên để đưa ra màn hình tổng 2 giai thừa
Bài 3: Viết chương trình có sử dụng hàm lũy thừa xy để đưa ra màn hình hiệu 2 lũy thừa
Bài 4: Viết chương trình có sử dụng hàm đưa ra màn hình các số chính phương từ 1 đến 100 ngăn cách nhau bởi dấu cách, biết số chính phương là số được tạo ra từ bình phương của 1 số nguyên khác
S=1/2 + 1/3 + 1/4 + .... 1/n
viết chương trình của bài toán trên
cứu em mai e thi r ạaaaaaaaa
program tinh_toan;
uses crt;
var S;i:integer;
begin
S:=0;
for i:=2 to 100 do S:=S+1/i;
writeln(S);
readln;
end.
Var i,n:integer;
s:real;
Begin
Write('n = ');readln(n);
For i:=2 to n do s:=s+1/i;
Write('tong la ',s:10:2);
Readln;
End.
Tuần tới sẽ có tiết ôn tập Tin học. Mai và Trung được cô giáo giao nhiệm vụ trình bày trước lớp về một số máy tính thông dụng. Hai bạn trao đổi với nhau như sau:
Trung: Tớ sẽ lấy nội dụng mục 1 ở bài 3 để làm bài trình chiếu. Còn bạn sẽ trình bày trước lớp nhé.
Mai: Đồng ý. Bạn chuyển bài trình chiếu cho tớ để tớ trình bày trước lớp.
Em hãy trao đổi với bạn và cho biết:
- Nhiệm vụ của bạn Mai là gì?
- Nhiệm vụ của bạn Trung là gì?
- Nhiệm vụ của bạn Mai là trình bày trước lớp bài trình chiếu về một số máy tính thông dụng
- Nhiệm vụ của bạn Trung là lấy nội dụng mục 1 ở bài 3 để làm bài trình chiếu
viết chương trình nhập vào số tự nhiên N(N<=100)sau đó tính tổng các số lẻ từ 1 đến N.Ví dụ nhập N=5.Tổng các số lẻ=9.Giúp tớ đi huhu ngày mai thi r TT
uses crt;
var i,n,t:integer;
begin
clrscr;
readln(n);
t:=0;
for i:=1 to n do if i mod 2=1 then t:=t+i;
writeln(t);
readln;
end.
[ Em hãy viết đoạn chương trình sử dụng vòng lặp For...do để in ra màn hình các số từ 1 đến 10 ]
giúp mik ik mai mik thi gk 2 r
tham khảo
uses crt;
var i,t:integer;
begin
clrscr;
t:=0;
for i:=1 to 10 do
t:=t+i;
writeln('Tong cac so tu nhien tu 1 toi 10 la: ',t);
readln;
end.
refer
uses crt;
var i: integer;
begin
clrscr;
for i:= 1 to 10 do
begin writeln ( ' O ' ) end;
readln
end.
Các bạn hãy dịch cho mình câu này sang tiếng anh :
chào buổi sáng ! chúng ta sẽ đến với chương trình dự báo thời tiết của hôm nay và ngày mai . Hôm nay ở hà nôi trời mát mẻ và có nắng . Còn ngày mai sẽ ra sao , xin mọi người xem . Ngày mai ở hà nội sẽ nắng và nóng . Đâu là dự báo thời tiết ngày hôm nay và ngày mai . Chương trình dự báo tới đây kết thúc . Hãy đón xem vào chương trình ngày mai .Chúc mọi người một ngày tốt lành . Tạm biệt !
kb với mình nhé . Mình k cho
Good morning ! Welcome to the weather forecast. Let's take a look at the weather today and tomorrow. Today, it's cool and sunny in Ha Noi. What will the weather be tomorrow ? Well, it will be hot and sunny. This is the weather forecast of today and tomorrow. The program is coming to an end. Please watch the show tomorrow. Have a nice day. Good bye !
Good morning ! We will come to weather forecasts today and tomorrow .Today in Hanoi it's cool and sunny. What will tomorrow be? Watch ! Tomorrow in Hanoi it's hot and sunny .This is the weather forecast today and tomorrow . The weather forecast program here comes to end . Please watch the show tomorrow. Have a nice day ! Goodbye .
- Câu 1 : Bản thân em học tập môn nào còn chưa tốt? Em hãy lập kế hoạch để mình tiến bộ hơn trong năm học này.
- Câu 2 : Trình bày ngắn gọn (khoảng 5 dòng) 1 ý tưởng sáng tạo của em để học tập hiệu quả hơn.
Làm giúp tớ cả 2 câu ạ. Tại đề chẵn lẻ nên cô cho 2 bài để ôn
Thăn kiu trước ạ -)))
Viết chương trình tính tích từ 1 đến 10 chiều mai mik thi cuối kì 1 r giúp mik nhá!
uses crt;
var i,s:longint;
begin
clrscr;
s:=1;
for i:=1 to 10 do
s:=s*i;
writeln(s);
readln;
end.
Dạo này mình mải ,ôn thi hổng có dịp tương tác với cộng đồng nhân dịp hôm nay cô mình có giao bài này mình chưa nghĩ ra cách ! Mọi người giúp mình nha
Một vị phụ huynh học sinh hỏi thầy giáo: "Thưa thầy, trong lớp có bao nhiêu học sinh?" Thầy cười và trả lời:"Nếu có thêm một số trẻ em bằng số hiện có và thêm một nửa số đó, rồi lại thêm 1/4 số đó, rồi cả thêm con của quý vị (một lần nữa) thì sẽ vừa tròn 100". Hỏi lớp có bao nhiêu học sinh?