Advertisement
evage

third

Sep 18th, 2021 (edited)
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     long long int a, b, c;
  6.     cout << "Enter \"a\" value\n";
  7.     cin >> a;
  8.     cout << "Enter \"b\" value\n";
  9.     cin >> b;
  10.     cout << "Enter \"c\" value\n";
  11.     cin >> c;
  12.    
  13.     if ((a * a + b * b) == (c * c))
  14.         cout << "Pifagor";
  15.     else if ((a * a + c * c) == (b * b))
  16.         cout << "Pifagor";
  17.     else if ((c * c + b * b) == (a * a))
  18.         cout << "Pifagor";
  19.     else
  20.         cout << "Not Pifagor";
  21.  
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement