pizdez/л2нп.cpp

18 lines
289 B
C++
Raw Permalink Normal View History

2024-11-28 12:25:11 +04:00
#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);
}