diff --git a/ConsoleApplication1/ConsoleApplication1.cpp b/ConsoleApplication1/ConsoleApplication1.cpp index 5f28270..e8c0aad 100644 --- a/ConsoleApplication1/ConsoleApplication1.cpp +++ b/ConsoleApplication1/ConsoleApplication1.cpp @@ -1 +1,21 @@ - \ No newline at end of file +#include +#include +#include + +void main1() +{ + SetConsoleCP(1251); + SetConsoleOutputCP(1251); + + float a, b, c, R, S; + + printf("Введите стороны треугольника и радиус описанной окружности\n"); + scanf_s("%f", &a); + scanf_s("%f", &b); + scanf_s("%f", &c); + scanf_s("%f", &R); + + S = (a * b * c) / (4 * R); + + printf("Площадь треугольника=%f\n", S); +}