Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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;
 
PREVIOUS NEXT
Tagged: #Third #angle #Triangle
ADD COMMENT
Topic
Name
9+8 =