18 lines
289 B
C++
18 lines
289 B
C++
|
#include<stdio.h>
|
|||
|
#include<math.h>
|
|||
|
#include<Windows.h>
|
|||
|
void main()
|
|||
|
{
|
|||
|
SetConsoleCP(1251);
|
|||
|
SetConsoleOutputCP(1251);
|
|||
|
float P;
|
|||
|
float r;
|
|||
|
float s;
|
|||
|
|
|||
|
printf("P");
|
|||
|
scanf_s("%f", &P);
|
|||
|
printf("r <20><><EFBFBD><EFBFBD>");
|
|||
|
scanf_s("%f", &r);
|
|||
|
s = P * r * 0.5;
|
|||
|
printf("<EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> %f P %f r%f \n", s, P, r);
|
|||
|
}
|