Advertisement
PowerLay

33.1

Feb 25th, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h> // для fabs и abs(взятие модуля)
  3. using namespace std;
  4. int main()
  5. {
  6. while (true)
  7. {
  8. float x, y;
  9. printf("Cords:\n");
  10. printf("X: ");
  11. scanf("%f", &x);
  12. printf("Y: ");
  13. scanf("%f", &y);
  14. if (x >= 0 && y <= x * x && y <= 4 && y >= 0)
  15. {
  16. printf("Yes!\n");
  17. }
  18. else
  19. {
  20. printf("No!\n");
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement