Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define use_CRT_SECURE_NO_WARNINGS
- #include "stdafx.h"
- #include <stdio.h>
- int main()
- {
- int x = 0, y = 0, r = 0, r1 = 0, r2 = 0;
- printf("vvedite koordinaty x : ", x);
- scanf_s("%d", &x);
- printf("vvedite koordinaty y : ", y);
- scanf_s("%d", &y);
- 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))
- {
- printf("YES ");
- }
- else {
- printf("NO ");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement