Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #define use_CRT_SECURE_NO_WARNINGS
  2.  
  3. #include "stdafx.h"
  4. #include <stdio.h>
  5.  
  6.  
  7. int main()
  8. {
  9.  
  10. int x = 0, y = 0, r = 0, r1 = 0, r2 = 0;
  11. printf("vvedite koordinaty x : ", x);
  12. scanf_s("%d", &x);
  13. printf("vvedite koordinaty y : ", y);
  14. scanf_s("%d", &y);
  15. if (((x < 0) && (y > 0) && ((x*x + y * y) < r1*r1)) || ((x > 0) && (y < 0) && ((x*x + y * y) > r1*r1)) && ((x*x + y * y) < r2*r2))
  16. {
  17. printf("YES ");
  18. }
  19. else {
  20. printf("NO ");
  21. }
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement