nb

1 reply [Last post]
Offline
Last seen: 1 year 34 weeks ago
Joined: 08/11/2010
Posts:

class hrt{

double width;
double height;
double depth;
hrt()
{
width=10;
height=10;
depth=10;

}
}
class hrtdemo{
public void main(String args[]){
hrt myhrt=new hrt();
double volum;
volum=myhrt.width*myhrt.height*myhrt.depth;
System.out.println("the volume is "+volum);
}
}

piwh1000's picture
Offline
Last seen: 7 hours 29 min ago
Joined: 02/15/2008
Posts:
Are you having an issue with

Are you having an issue with this code?

Developer - Compilr.com