#include<iostream>
using namespace std;
#include<conio.h>
int main()
{
float angle1,angle2,angle3,sum;
cout<<"Enter 3 angle of a the triangle : ";
cin>>angle1>>angle2>>angle3;
sum=angle1+angle2+angle3;
if(sum==180)
{
cout<<"the Triangle is Valid.";
}
else
{
cout<<"the Triangle is invalid.";
}
getch();
Understandable C and C++ programming tutorials, compiler reviews, source code, tips and tricks.
*/
return 0;
}
using namespace std;
#include<conio.h>
int main()
{
float angle1,angle2,angle3,sum;
cout<<"Enter 3 angle of a the triangle : ";
cin>>angle1>>angle2>>angle3;
sum=angle1+angle2+angle3;
if(sum==180)
{
cout<<"the Triangle is Valid.";
}
else
{
cout<<"the Triangle is invalid.";
}
getch();
/* Letuswithc:
this page is designed to help you learn C or C++.Understandable C and C++ programming tutorials, compiler reviews, source code, tips and tricks.
*/
return 0;
}
No comments:
Post a Comment