c++
#include<bits/stdc++.h>using namespace std;int main(){float a,b,c;cin>>b>>c>>a;float p=(a+b+c)/2;//cai nay minh ap dung he thu herong cho no nhanh nhacout<<sqrt(p*(p-a)*(p-c)*(p-b));return 0;}pascaluses crt;var a,b,c,p:real;begin clrscr;readln(a,b,c);p:=(a+b+c)/2;write(sqrt(p*(p-a)*(p-b)*(p-c)):4:2);readln;end.#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, C;
double p, S;
cin >> a >> b >> c;
C=a+b+c,
p=C/2,
S=sqrt(p*(p-a)*(p-b)*(p-c));
cout << "Chu vi tam giac la " << C << "\nDien tich tam giac la " << (double)S << endl;
return 0;
}
Chúc bn học tốt!