Java Program to calculate the area of different geometric figures using switch case.

Output: