📜  代码转换器 C++ 到 python 代码示例

📅  最后修改于: 2022-03-11 14:47:07.637000             🧑  作者: Mango

代码示例1
#include 
#include 
using namespace std;
int main()
{

    int a,b,c;


    cout << "Enter the length of three sides. " << endl;
    cin >> a >> b >>c;
     if(pow(c,2)-pow(b,2)-pow(a,2) == 0)
         cout << "It is a right triangle " << endl;
     else if (pow(b,2)-pow(a,2)+pow(c,2) == 0 )
         cout << "It's a right triangle" << endl;
     else if (pow(c,2) -pow(b,2)+pow(a,2)==0 )
         cout << "It's a right triangle" << endl;
     else
         cout << "It is not a right triangle. " << endl;






    return 0;
}