C++
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if ((a + b + c) == 180 ) {
cout << "These are the angles of the triangle" << endl;
if ((a == 90) || (b == 90) || (c == 90)) {
cout << "Rectangular";
} else {
cout << "Not rectangular";
}
cout << "These are not the angles of the triangle";
return 0;
C++
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if ((a + b + c) == 180 ) {
cout << "These are the angles of the triangle" << endl;
if ((a == 90) || (b == 90) || (c == 90)) {
cout << "Rectangular";
} else {
cout << "Not rectangular";
}
} else {
cout << "These are not the angles of the triangle";
}
return 0;
}