WupEly

Untitled

Jan 27th, 2022
944
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.14 KB | None | 0 0
  1. int main() {
  2.     double x;
  3.     double y;
  4.     cin >> x;
  5.     cin >> y;
  6.  
  7.     if (pow(x, 2) + pow(y, 2) == 1 && y == x/2) {
  8.         cout << true;
  9.     }
  10.  
  11.    
  12. }
Advertisement
Add Comment
Please, Sign In to add comment