public class Volume{
public static void main (String[] args)
{
double radius;
double area;
double volume;
double length;
length = 21;
radius = 7;
area = radius * radius * 3.134;
volume = area * length;
System.out.println("The volume for the cilinder of = " + area + " area = " + volume);
}
}
Thursday, March 6, 2008
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment