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 âďčń");
|
|
scanf_s("%f", &r);
|
|
s = P * r * 0.5;
|
|
printf("ďë ěíîăîóă %f P %f r%f \n", s, P, r);
|
|
} |