

Hãy luôn nhớ cảm ơn và vote 5*
nếu câu trả lời hữu ích nhé!
Bài 2:
program bai_giai2;
uses crt;
var a,b,c,p,S:real;
begin
clrscr;
readln(a,b,c);
p:=(a+b+c)/2;
S:=sqrt(p*(p-a)*(p-b)*(p-c));
write('S = ',s:0:2);
readln;
end.
Bài 3:
program bai_giai3;
uses crt;
var x1,y1,x2,y2,C:real;
begin
clrscr;
readln(x1,y1,x2,y2);
C:=sqrt(sqr(x1-x2)+sqr(y1-y2));
write('C = ',c:0:2);
readln;
end.
sqrt là căn bậc 2
sqr là bình phương.
Hãy giúp mọi người biết câu trả lời này thế nào?
\begin{array}{c} \color{#db1616}{\texttt{#Khoadang09}} \end{array}
*Bài 2 :
#include <stdio.h>
#include <math.h>
int main(){
double a, b, c;
scanf("%lf%lf%lf",&a,&b,&c);
double p = (a + b + c) / 2 ;
double s = p * (p - a) * (p - b) * (p - c);
printf("%.2lf",sqrt(s));
}
*Bài 3 :
#include <stdio.h>
#include <math.h>
#define sqr(x) pow(x,2)
int main(){
double x1, x2, y1, y2;
scanf("%lf%lf%lf%lf",&x1,&y1,&x2,&y2);
double C = sqrt(sqr(x1-x2)+sqr(y1-y2));
printf("%.2lf",C);
}
Hãy giúp mọi người biết câu trả lời này thế nào?
Bảng tin
110
684
74
https://hoidap247.com/cau-hoi/2595662 Giúp em với ạ
0
2
0
https://hoidap247.com/cau-hoi/2606699
0
2
0
giúp e với ạ. E cần gấp:<