Nguyễn Đức Hiếu
(duchieuly1)
New Member
Ha ha
khổ thân thằng bé
đang làm j` đó
ngồi học à
ngoan thía
khổ thân thằng bé
đang làm j` đó
ngồi học à
ngoan thía
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
program tamgiac;
uses crt;
var x1,x2,x3,x4,y1,y2,y3,y4:longint;
ab,bc,ca,am,bm,cm:real;
s1,s2,s3,s4:longint;
p1,p2,p3,p4:real;
begin
clrscr;
write('Nhap toa do diem A: ');readln(x1,y1);
write('Nhap toa do diem B: ');readln(x2,y2);
write('Nhap toa do diem C: ');readln(x3,y3);
write('Nhap toa do diem M: ');readln(x4,y4);
ab:=sqrt(sqr(x1-x2)+sqr(y1-y2));
bc:=sqrt(sqr(x2-x3)+sqr(y2-y3));
ca:=sqrt(sqr(x3-x1)+sqr(y3-y1));
am:=sqrt(sqr(x1-x4)+sqr(y1-y4));
bm:=sqrt(sqr(x2-x4)+sqr(y2-y4));
cm:=sqrt(sqr(x3-x4)+sqr(y3-y4));
if (ab+bc<=ca) or (ab+ca<=bc) or (bc+ca<=ab) then writeln('Thang nao ngu the nhap du lieu sai roi')
else begin
p1:=(ab+bc+ca)/2;
p2:=(ab+bm+am)/2;
p3:=(bm+bc+cm)/2;
p4:=(am+cm+ca)/2;
s1:=round(sqrt(p1*(p1-ab)*(p1-bc)*(p1-ca)));
s2:=round(sqrt(p2*(p2-ab)*(p2-bm)*(p2-am)));
s3:=round(sqrt(p3*(p3-bm)*(p3-bc)*(p3-cm)));
s4:=round(sqrt(p4*(p4-am)*(p4-cm)*(p4-ca)));
if s1=s2+s3+s4 then writeln('M thuoc tam giac')
else writeln('M o ngoai tam giac');
end;
readln;
end.
program giaithua;
uses crt;
var n,i:longint;
kq:real;
begin
clrscr;
write('Nhap n: ');readln(n);
kq:=1;
for i:=1 to 2*n do
if (i mod 2=n mod 2) then kq:=kq*i;
write('n!!= ',kq:0:0);
readln;
end.
Cô em Bình khá lémPhạm Thanh Bình đã viết:đây là bài tiền điện
đầy đủ những gì lão tuấn yêu cầu
dài vãi chốt
program dmtuan;
Cả đây nữa:
if (ab+bc<=ca) or (ab+ca<=bc) or (bc+ca<=ab) then writeln('Thang nao ngu the nhap du lieu sai roi')
program giaithua;
uses crt;
var n,i:longint;
kq:real;
begin
clrscr;
write('Nhap n: ');readln(n);
kq:=1;
for i:=1 to 2*n do
if (i mod 2=n mod 2) then kq:=kq*i;
write('n!!= ',kq:0:0);
readln;
end.
gotoxy(2,21);
write('So tien viet bang chu');
gotoxy(1,23);
for i:=1 to 70 do write('-');
for i:=20 to 23 do
begin
gotoxy(1,i); write('!');
gotoxy(70,i); write('!');
end;
tien:=(tien*11) div 10;
gotoxy(2,22);
tien1:=tien;
h:=1000000000;
repeat
c3:=tien1 div (h div 1000);
if c3<>0 then
begin
t:=c3 div 100;
c3:=c3 mod 100;
c:=c3 div 10;
d:=c3 mod 10;
case t of
0:if (tien1<>tien) and ((c<>0) or (d<>0)) then write('khong tram ');
1:write('mot tram ');
2:write('hai tram ');
3:write('ba tram ');
4:write('bon tram ');
5:write('nam tram ');
6:write('sau tram ');
7:write('bay tram ');
8:write('tam tram ');
9:write('chin tram ');
end;
case c of
0: if (d<>0) and (tien1<>tien) and (c<>0) then write('linh ');
1:write('muoi ');
2:write('hai muoi ');
3:write('ba muoi ');
4:write('bon muoi ');
5:write('nam muoi ');
6:write('sau muoi ');
7:write('bay muoi ');
8:write('tam muoi ');
9:write('chin muoi ');
end;
case d of
1:write('mot ');
2:write('hai ');
3:write('ba ');
4:write('bon ');
5:if c<>0 then write('lam ')
else write('nam ');
6:write('sau ');
7:write('bay ');
8:write('tam ');
9:write('chin ');
end;
if h=1000000000 then write('trieu ');
if h=1000000 then write('nghin ');
if h=1000 then write('dong ');
end;
h:=h div 1000;
if h<>0 then
tien1:=tien1 mod h;
until h=1;