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 value.

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... public double pythogoras(double x, double y){ //Write code here } Thanks

Ads