Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h> // для fabs и abs(взятие модуля)
- using namespace std;
- int main()
- {
- while (true)
- {
- float x, y;
- printf("Cords:\n");
- printf("X: ");
- scanf("%f", &x);
- printf("Y: ");
- scanf("%f", &y);
- if (x >= 0 && y <= x * x && y <= 4 && y >= 0)
- {
- printf("Yes!\n");
- }
- else
- {
- printf("No!\n");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement