how to write a method named pythogoras(). It sholud have two parameteres,x and y, of type double. It should compute and return as its value.
Hi,
You can write the function like this:
public double pythogoras(double x, double y){
//Write code here
}
Thanks