Share your repls and programming experiences

← Back to all posts
1
ChandranshuKuma (0)

#include <iostream>
#include<math.h>
using namespace std;

int main() {
float a,b,c,s,area;
cout<<"enter three sides of the triangle :"<<endl;
cin>>a>>b>>c;
s=(a+b+c)/2;
area=sqrt(s(s-a)(s-b)*(s-c));
cout<<"area of the triangle is :"<<area;
return 0;
}