Advertisement
evgenko

Untitled

Dec 27th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.   float x,y;
  8.   cout << "Enter x: ";
  9.   cin >> x;
  10.   cout << "Enter y: ";
  11.   cin >> y;
  12.   if (y<=-x*x){
  13.     cout << "Correct";
  14.   }else{
  15.     if ((y>=0)&&(y<=x)&&(fabs(x)<=1)){
  16.         cout << "Correct";
  17.     }else {
  18.         cout << "Not Correct";
  19.     }
  20.   }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement