Предмет: Информатика,
автор: LowSa
Помогите написать программу c++
Приложения:
Ответы
Автор ответа:
0
//формулы сам(а) добавишь в программу
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int choose = 0;
int a, b, alpha, beta, formula, basis, height, square;
cout << "Input your number(1-3):" << endl;
cout << "1.Enter two parties of a triangle and a corner between them:" << endl;
cout << "2.Enter parties of a triangle and two corners:" << endl;
cout << "3.Enter basis and height:" << endl;
cin >> choose;
switch (choose)
{
case 1:
cin >> a >> b >> alpha;
//formula =
cout << "formula = " << formula;
cout << endl;
case 2:
cin >> a >> beta >> alpha;
//formula =
cout << "formula = " << formula;
cout << endl;
case 3:
cin >> basis >> height;
//square =
cout << "square = " << square;
cout << endl;
default:
cout << "Wrong number!";
}
return 0;
}
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int choose = 0;
int a, b, alpha, beta, formula, basis, height, square;
cout << "Input your number(1-3):" << endl;
cout << "1.Enter two parties of a triangle and a corner between them:" << endl;
cout << "2.Enter parties of a triangle and two corners:" << endl;
cout << "3.Enter basis and height:" << endl;
cin >> choose;
switch (choose)
{
case 1:
cin >> a >> b >> alpha;
//formula =
cout << "formula = " << formula;
cout << endl;
case 2:
cin >> a >> beta >> alpha;
//formula =
cout << "formula = " << formula;
cout << endl;
case 3:
cin >> basis >> height;
//square =
cout << "square = " << square;
cout << endl;
default:
cout << "Wrong number!";
}
return 0;
}
Похожие вопросы
Предмет: Астрономия,
автор: di802150
Предмет: Русский язык,
автор: zaratvtd
Предмет: Математика,
автор: vladimirkarpuk0
Предмет: Алгебра,
автор: Аноним