c2
This commit is contained in:
parent
0d75f30a49
commit
4744ebb565
69 changed files with 7 additions and 5 deletions
|
|
@ -1,24 +0,0 @@
|
|||
// pb_z2_4.cpp
|
||||
// Горбацевич Андрей
|
||||
#include <stdio.h>
|
||||
#include <cmath>
|
||||
#include <clocale>
|
||||
#include <afxres.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
SetConsoleCP(CP_UTF8);
|
||||
SetConsoleOutputCP(CP_UTF8);
|
||||
setlocale(LC_ALL, "ru_RU.UTF-8");
|
||||
|
||||
double x, a, b, c, d;
|
||||
printf("x [a b] [c d] >>");
|
||||
scanf("%lf %lf %lf %lf %lf", &x, &a, &b, &c, &d);
|
||||
if ((fmin(a, b) <= x && x <= fmax(a, b)) || (fmin(c, d) <= x && x <= fmax(c, d))) {
|
||||
printf("Принадлежит");
|
||||
}
|
||||
else {
|
||||
printf("Не принадлежит");
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue