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.

Ads

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

Post Answer

Preview:

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