From 9a788e79be4ddda73713451ce1e24f3372ea6754 Mon Sep 17 00:00:00 2001 From: Denis_5438 Date: Fri, 15 Nov 2024 16:18:37 +0400 Subject: [PATCH] kom3 --- ConsoleApplication1/ConsoleApplication1.cpp | 22 ++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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); +}