code converter c 2b 2b to python

Solutions on MaxInterview for code converter c 2b 2b to python by the best coders in the world

showing results for - "code converter c 2b 2b to python"
Jerónimo
01 May 2018
1#include <iostream>
2#include <cmath>
3using namespace std;
4int main()
5{
6
7	int a,b,c;
8
9
10	cout << "Enter the length of three sides. " << endl;
11	cin >> a >> b >>c;
12	 if(pow(c,2)-pow(b,2)-pow(a,2) == 0)
13		 cout << "It is a right triangle " << endl;
14	 else if (pow(b,2)-pow(a,2)+pow(c,2) == 0 )
15		 cout << "It's a right triangle" << endl;
16	 else if (pow(c,2) -pow(b,2)+pow(a,2)==0 )
17		 cout << "It's a right triangle" << endl;
18	 else
19		 cout << "It is not a right triangle. " << endl;
20
21
22
23
24
25
26	return 0;
27}
similar questions
queries leading to this page
code converter c 2b 2b to python