Untitled
unknown
plain_text
2 years ago
540 B
7
Indexable
#include <windows.h>
#include <cstdlib>
#include <math.h>
#include <conio.h>
#include <stdio.h>
#include <locale.h>
int main() { // 22068
setlocale(LC_ALL, "RUS");
float x, y;
printf("Введите координаты точки x\n");
scanf_s("%f", &x);
printf("Введите координаты точки y\n");
scanf_s("%f", &y);
if (x >= -1 && x <= 1 && y >= -1 && y <= 1)
printf("Точка попадает в цель");
else
printf("Точка не попадает в цель");
return 0;
}Editor is loading...