diff --git a/ConsoleApplication1/ConsoleApplication1.cpp b/ConsoleApplication1/ConsoleApplication1.cpp index 35e0ef1..7ffecd9 100644 --- a/ConsoleApplication1/ConsoleApplication1.cpp +++ b/ConsoleApplication1/ConsoleApplication1.cpp @@ -1,9 +1,18 @@ -#include +#include +#include +#include void main() { - printf("Sevodnyasev Stanislav\n"); - printf("FIST\n"); - printf("PIbd-13\n"); - printf("04.09.2024"); + SetConsoleCP(1251); + SetConsoleOutputCP(1251); + float R, p, S; + S = 0; + p = 3, 14; + printf("Формула площади круга равна S=p*R^2\n"); + printf("Введите длину радиуса круга\n"); + scanf_s("%f", &R); + printf("Площадь равна = %f\n", S = p * R * R); } + +