#include <iostream>
using namespace std ;
int main ( )
{
int a , b , c , angle ;
cout << " Enter the first angle " ;
cin >> a ;
cout << " Enter the second angle " ;
cin >> b ;
cout << " Enter the third angle " ;
cin >> c ;
angle = a + b + c ;
if ( angle == 180 )
{
cout <<" The triangle is a valid ";
}
else
{
cout <<" The triangle is not a valid ";
}
return 0 ;
}
No comments:
Post a Comment
Must drop your comments about post.