diff --git a/ConsoleApplication1/ConsoleApplication1.cpp b/ConsoleApplication1/ConsoleApplication1.cpp index 5f28270..2b98fd9 100644 --- a/ConsoleApplication1/ConsoleApplication1.cpp +++ b/ConsoleApplication1/ConsoleApplication1.cpp @@ -1 +1,15 @@ - \ No newline at end of file +#include +#include +#include + +void main() +{ + SetConsoleCP(1251); + SetConsoleOutputCP(1251); + printf("Введите радиус шара:"); + float R; + scanf_s("%f", &R); + float pi = 3.14f; + float v = (4.0 / 3.0) * pi * (R * R * R); + printf("Обьем шара равен = %f ", v); +} \ No newline at end of file