Menu


.

Write a program to find out whether triangle is valid or not.

#include< iostream.h >

#include< conio.h >

void main()

{

clrscr();

int a,b,c;

cout<<"Please enter the Angles of A Triangle";

cin>>a>>b>>c;

if(a+b+c==180)

cout<<"Valid Triangle";

else

cout<<"Invalid Triangle";

getch();

}




Enjoy our courses Today