Public feed
#888779
import java.util.*;public class SKolmio { private double kateetti_a; private double kateetti_b; private double hypotenuusa; public void asetaKateettiA(double a) { kateetti_a= a; } public void asetaKateettiB(double b) { kateetti_b= b; } public double haeHypotenuusa() { double hypotenuusa = (kateetti_a*kateetti_a+kateetti_b*kateetti_b); hypotenuusa = Math.sqrt(hypotenuusa); return hypotenuusa; } }