package workshop.tag2;

public class Gruppe3 {

    public static void main(String[] args) {
        // 1. Möglichkeit: Quadrieren mittels "manueller" Multiplikation
        double a = 3;
        double b = 4;
        double c = Math.sqrt(a*a + b*b);
        System.out.println("Es gilt: " + a*a + " + " + b*b + " = " + c*c);

        // 2. Möglichkeit: Quadrieren mittels Math.pow(BASIS, EXPONENT)
        double x = 3;
        double y = 4;
        double z = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
        System.out.println("Es gilt: " + Math.pow(x, 2) + " + " + Math.pow(y, 2) + " = " + Math.pow(z, 2));
    }

}
