Answers for "C++ Third angle of a Triangle"

C++
1

C++ Third angle of a Triangle

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;
Posted by: Guest on March-03-2022

Code answers related to "C++ Third angle of a Triangle"

Browse Popular Code Answers by Language