#include <iostream>
#include <cmath>
using namespace std;
main()
{
float a,b,c,s,area;
cout<<"Enter the 3 sides of a Triangle.\n";
cin>>a>>b>>c;
s=(a+b+c)/2;
area= sqrt(s*(s-a)*(s-b)*(s-c));
cout<<"Area= "<<area<<endl;
}
//Java Program to count the total number of characters in a string import java.util.*; public class CountChars { public static void mai...
No comments:
Post a Comment