int x,y,z;
cout << "Enter first distance:";
cin >> x;
cout << "Enter second distance:";
cin >> y;
cout << "Enter third distance:";
cin >> z;
if ((x + y) > z && (z + x) > y && (z + y) > x)
else
system("pause");
cout << "Enter first distance:";
cin >> x;
cout << "Enter second distance:";
cin >> y;
cout << "Enter third distance:";
cin >> z;
if ((x + y) > z && (z + x) > y && (z + y) > x)
cout << "Triangle" << endl;
else
cout << "Not triangle" << endl;
system("pause");
Комментариев нет:
Отправить комментарий