Skip to content

Instantly share code, notes, and snippets.

@alexesDev
Created October 26, 2012 19:40
Show Gist options
  • Select an option

  • Save alexesDev/3960994 to your computer and use it in GitHub Desktop.

Select an option

Save alexesDev/3960994 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <math.h>
int main(void)
{
double x, y;
printf("Введите координату x >");
scanf("%lf", &x);
printf("Введите координату y >");
scanf("%lf", &y);
printf("x=%6.3lf; y=%6.3lf\n", x, y);
if(fabs(y) <= 1 && fabs(y) >= fabs(x))
printf("Точка попадает в область\n");
else
printf("Точка не попадает в область\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment