int x, y, z; cout << "Enter the first angle of the triangle: "; cin >> x; cout << "Enter the second angle of the triangle: "; cin >> y; z = 180 - (x + y); cout << "The third angle is: " << z << endl;