uses crt;
var
alpha,a,b,c,luas : real;
begin
clrscr;
writeln(‘program mencari luas segitiga sembarang’);
writeln;
write(‘besarnya alpha ?’);
readln(alpha);
write(‘besarnya b ?’);
readln(b);
write(‘panjang c ?’);
readln(c);
a := sqrt(sqr(b) + sqr(c) -2 * b * c *cos(alpha / 57.2958));
luas := 0.5 * b * c * sin(alpha / 57.2958);
writeln;
writeln(‘panjang sisi a = ‘,a:8:2);
writeln(‘luas segitiga = ‘,luas:8:2);
end.