Programming

C – Find the Area of Triangle, Circle and Square Using Switch Case

  • January 24, 2021
  • 0 Comments

C Program to find the area of triangle, circle and square using switch case. #include<stdio.h>#include<conio.h>#include<math.h>void main(){ int choice; clrscr(); printf(“1. For are of triangle”); printf(“2. For area of circle”); printf(“3. For area of ractangle”); printf(“4. For are of square”); printf(” Enter your choice:n”); scanf(“%d”,choice); { case 1: { int b,h,a; printf(“Enter base and height:”); scanf(“%d%d”,&b,&h); […]