Computer Science, asked by syedaijaz7906, 10 months ago

Using a switch statement, write a program to calculate the area of a square, rectangle, cube, cuboid by taking suitable variables and datatypes. 1. Area of a square(A=s*s, where s is the side of a square) 2. Area of a rectangle (A= l*b, where l and b are length and breadth) 3. Area of a cube (A= 6*a*a, where a is the side of a cube) 4. Area of a cuboid (A=2(lb+bh+lh), where l,b,h are length, breadth and height of a cuboid​

Answers

Answered by abhisheksinghr59
3

Answer:

Using a switch statement, write a program to calculate the area of a square, rectangle, cube, cuboid by taking suitable variables and datatypes. 1. Area of a square(A=s*s, where s is the side of a square) 2. Area of a rectangle (A= l*b, where l and b are length and breadth)

Explanation:

please mark me as a brainliest

Similar questions