HOC24
Lớp học
Môn học
Chủ đề / Chương
Bài học
Có tính chu vi tg từ a vs h à?Var a,h:real; beginWriteln('nhap do dai duong cao: '); Readln(h);Writeln('nhap do dai canh day: '); readln(a);Writeln('dien tich tam giac: S= ', (a*h)/2);end.
a. X=14b. ủa đề lag z :) cho X vs Y rồi bảo tổng A, BVar Z:=A+B;c. X=35d. c=9e. 20+5= 25
1.t:=x;x:=y;y:=t;2. kết quả: x=20 ó
b ko hợp lệ
Var k: integer;beginWriteln('nhap so k: '); Readln(k);if k mod 2 = 0 then writeln('k =', k+1)else writeln('k=',k+2);end.
Var a,b,c: integer;begin writeln('nhap ba so duong: ');Readln(a,b,c);if (a+b>c) and (a+c>b) and (b+c>a) then writeln('3 so nay co the la do dai 3 canh cua 1 tam giac')else writeln('3 so nay khong the la do dai 3 canh cua 1 tam giac');End.
Có 2 cách là nay vs cái gửi trc nhưng cách này ổn hơn nhaVar x,y,t: integer;BeginWriteln('nhap 2 so nguyen x va y: '); Readln(x,y);x:=t;y:=x;y:=t;Writeln('so x sau hoan doi= ',x);Writeln('so y sau hoan doi= ',y);end.
Var x,y: integer;BeginWriteln('nhap 2 so nguyen x va y: '); Readln(x,y);x:=x+y;y:=x-x;x:=y;Writeln('so x sau hoan doi= ',x);Writeln('so y sau hoan doi= ',y);end.
Var a:integer;BeginWriteln('nhap mot so nguyen: '); Readln(a);If a mod 2 = 0 then writeln(a,' la so chan') else writeln(a,' la so le');End.
83. Mom had to do everything without the help of modern equipment.84. You have to keep all dangerous objects out of children's reach.85. Unfortunately, the new wife was very cruel to Little Pea.86. He lit the straw and the fire burned the tiger.87. One thing that he needs to improve is pronunciation.88. There are also different ways of learning the same number of words.89. You must put all chemicals and drugs in locked cupboard.90. He isn't old enough to be in my class.91. He worked at Boston University with deaf mutes.92. He demonstrated his invention at a lot of exhibitions.93. Traveling all over America, Bell demonstrated his invention to the public at countless exhibitions.94. Mom had to do everything without the help of modern equipment. (giống câu đầu)95. He lit the straw and the fire burned the tiger. (giống câu 86:))96. As Little Pea ran to the festivals, she dropped one of her shoes and lost it.