//формулы сам(а) добавишь в программу
#include
#include
using namespace std;
int main()
{
int choose = 0;
int a, b, alpha, beta, formula, basis, height, square;
cout << "Input your number(1-3):" << endl;<br>cout << "1.Enter two parties of a triangle and a corner between them:" << endl;<br>cout << "2.Enter parties of a triangle and two corners:" << endl;<br>cout << "3.Enter basis and height:" << endl;<br> cin >> choose;
switch (choose)
{
case 1:
cin >> a >> b >> alpha;
//formula =
cout << "formula = " << formula;<br> cout << endl;<br>
case 2:
cin >> a >> beta >> alpha;
//formula =
cout << "formula = " << formula;<br> cout << endl;<br>
case 3:
cin >> basis >> height;
//square =
cout << "square = " << square;<br> cout << endl;<br>
default:
cout << "Wrong number!";<br> }
return 0;
}