Khema Edirisinghe
pythogoras
1 Answer(s)      4 years and 6 months ago
Posted in : Java Beginners

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.

Advertisement
View Answers

October 23, 2010 at 11:42 AM


Hi,

You can write the function like this:

public double pythogoras(double x, double y){
 //Write code here
}

Thanks










Related Tutorials/Questions & Answers:
pythogoras
pythogoras  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... pythogoras(double x, double y){ //Write code here } Thanks