2024-11-21 09:00:36 +04:00
|
|
|
|
#include<stdio.h>
|
|
|
|
|
#include<Windows.h>
|
|
|
|
|
#include<math.h>
|
2024-11-21 08:57:49 +04:00
|
|
|
|
|
2024-11-21 09:00:36 +04:00
|
|
|
|
void main()
|
2024-11-21 08:57:49 +04:00
|
|
|
|
{
|
2024-11-21 09:00:36 +04:00
|
|
|
|
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);
|
2024-11-21 08:57:49 +04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|