Mam zrobić powyższy algorytm i proszę o pomoc gdyż nie wiem co robię źle:
Kod: Zaznacz cały
# include <iostream>
using namespace std;
int main ()
{
unsigned int a,b,c;
cout << "Podaj dlugosc boku a " << endl;
cin >> a;
cout << "Podaj dlugosc boku b " << endl;
cin >> b;
cout << "Podaj dlugosc boku c " << endl;
cin >> c;
if ((a+b>c) && (a+c>b) && (c+b>a))
cout << "Mozna zbudować trójkąt " << endl;
else
cout << "Nie mozna zbudować trójkąta" << endl;
return 0;
}