Write a menu driven program to find area of a circle volume of a sphere total surface area of cuboid
Answers
import java . util.*;
class calculation
{
//space//Scanner sc=newScanner(System.in);
void main()
{
double//space//v=0.0,area=0?0,sa=0.0,r,pie=3.147;
int//space//l,b,h,ch;
System.out.println("1.area");
System.out.println("2.volume");
System.out.println("3.surface area");
System.out.println("enter your choice");
ch=sc.nextInt();
System.out.println("enter radius");
r=sc.nextDouble();
switch(ch);
{
//space//case 1:
//space//area=pie*r*r*r;
//space//System.put.println("area="+area);
break;
//space//case 2:
//space//v=4/3*pie*r*r*r;
//space//System.out.pri tln("volume="+v);
break;
//space//case 3:
//space//System.out .println("enter length,breath,height of a cuboid");
//space//l=sc.nextInt();
//space//b=sc.nextInt();
//space//h=sc.nextInt();
//space//sa=2(lh+bh+lb);
//space//System.out.println("surface area="+sa);
break;
//space//default:
//space//System.out.println("invalid choice");
}
}
}