Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <stdio.h>
  3. #include <locale.h>
  4.  
  5. int main()
  6. {
  7. setlocale(LC_ALL, "Rus");
  8. double x, y;
  9. printf("Введите координату x >");
  10. scanf("%lf", &x);
  11. printf("Введите координату y >");
  12. scanf("%lf", &y);
  13. if (x <= 0 && y >= 0 && y <= 1 && x >= -1) {
  14. printf("Точка попадает в область");
  15. } else if (x > 0 && y >= 0 && x*x + y*y <= 1) {
  16. printf("Точка попадает в область");
  17. } else {
  18. printf("Точка не попадает в область");
  19. }
  20. scanf("%lf");
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement