Q10 Practical
Q10 Practical
#include<iostream>
#include<math.h>
public:
};
cin>>base;
cin>>height;
Area=0.5*base*height;
return 0;
cin>>a;
cout<<"\nEnter the second side of triangle ";
cin>>b;
cin>>c;
float s = (a+b+c)/2;
float x= (s)*(s-a)*(s-b)*(s-c);
Area=sqrt(x);
return 0;
int main()
Triangle T;
float base,height,Area,s1,s2,s3;
int k;
char ch;
while(1)
cout<<"\n------MENU------";
cin>>k;
switch (k)
{
case 1:
break;
case 2:
break;
default:
cout<<"\nWrong choice";
continue;
break;
return 0;
Output:-