Menghitung luas segitiga.
static double luasSegitiga(double alas, double tinggi) => 0.5 * alas * tinggi;