From 7e41f3eeece0817a11096d46ff4df0a84ad06e45 Mon Sep 17 00:00:00 2001 From: "abasev360@gmail.com" Date: Thu, 28 Nov 2024 12:25:11 +0400 Subject: [PATCH] commit3 --- л2нп.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 л2нп.cpp diff --git a/л2нп.cpp b/л2нп.cpp new file mode 100644 index 0000000..13280a0 --- /dev/null +++ b/л2нп.cpp @@ -0,0 +1,18 @@ +#include +#include +#include +void main() +{ + SetConsoleCP(1251); + SetConsoleOutputCP(1251); + float P; + float r; + float s; + + printf("P"); + scanf_s("%f", &P); + printf("r âïèñ"); + scanf_s("%f", &r); + s = P * r * 0.5; + printf("ïë ìíîãîóã %f P %f r%f \n", s, P, r); +} \ No newline at end of file