Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  2222
Language: C/C++
Code:
#include <iostream>
#include <cmath>
using namespace std;

int main()
{
     setlocale(LC_ALL, "RUS");    
double a;
    double b;
    double c;
    double s,p;
    cout << "Input a: ";
    cin >> a;
    cout << "Input b: ";
    cin >> b;
    cout << "Input c: ";
    cin >> c;
    p=(a+b+c0/2;
    s=sqrt(p*(p-a)*(p-b)*(p-c))
    cout << "Square of threungle=" << s << endl;
    }
cin >> a;
    return 0;
}

          
          
          
          
          
Comments: