write a program to accept Three sides and check whether it is form of a triangle or not
Answers
Answered by
0
Answer:
//answered in c++
#include <iostream>
using namespace std;
int main(int A, int B, int C)
{
cout << "To Check The Sum Of Two Number Is Greater" << endl
<< "Enter A Integer" << endl; cin >> A;
cout << "Enter B Integer" << endl; cin >> B;
cout << "Enter C Integer" << endl; cin >> C;
if(A+B>C)
{
if(B+C>A)
cout << "Sum Of B & C Is Greater Then A" << endl;
}
else
cout << "Sum Of A & B Is Greater Then C" << endl;
{
if(C+A>B)
cout << "Sum Of C Is Greater Then B" << endl;
}
return 0;
}
Explanation:
Similar questions