Odpowiedź:
#include <iostream>
using namespace std;
bool isTriangle(int a, int b, int c)
{
if (a < b + c || b < c + a || c < a + b)
{
return true;
}
return false;
}
int main(int argc, char const *argv[])
{
int a;
cout << "Podaj dlugosc boku a trojkata" << endl;
cin >> a;
int b;
cout << "Podaj dlugosc boku b trojkata" << endl;
cin >> b;
int c;
cout << "Podaj dlugosc boku c trojkata" << endl;
cin >> c;
cout << isTriangle(a, b, c);
return 0;
}
Wyjaśnienie:
Jak coś niejasne to pisz :)