#include<iostream>
using namespace std;
#include<conio.h>
int main()
{
float side1,side2,side3;
cout<<"Enter three sides of triangle in ascending order:\n";
cin>>side1>>side2>>side3;
if(side1+side2>side3)
cout<<"\nThe triangle is valid.";
else
cout<<"\nThe triangle is invalid.";
getch();
return 0;
}
using namespace std;
#include<conio.h>
int main()
{
float side1,side2,side3;
cout<<"Enter three sides of triangle in ascending order:\n";
cin>>side1>>side2>>side3;
if(side1+side2>side3)
cout<<"\nThe triangle is valid.";
else
cout<<"\nThe triangle is invalid.";
getch();
return 0;
}
http://ba-programmer.blogspot.in/2014/03/mini-project-snake-game-in-c.html
ReplyDelete