Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Khema Edirisinghe
pythogoras
1 Answer(s)      4 years 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
Advertisements
 

 

 

DMCA.com