Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion triangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ class triangle
}obj1;
void triangle::checkvalid()
{
if((a+b>c)&&(a+c>b)&&(b+c>a))
if((a+b > c)&&(a+c > b)&&(b+c > a))
{
cout<<"VALID\n";
obj1.area();

}
else
cout<<"NOT VALID\n";
Expand All @@ -33,8 +34,14 @@ void triangle::area()
ar=sqrt(s*(s-a)(s-b)(s-c));
cout<<"The area of the triangle is "<<ar;
}

void callme()
{
cout << "Hello World" << endl;
}
int main()
{
obj1.display();
callme();
return(0);
}