Update funzioni/triangolo.cpp

This commit is contained in:
Vichingo455 2024-11-22 11:33:21 +00:00
parent 913328fcb3
commit 7f8da42406
1 changed files with 29 additions and 32 deletions

View File

@ -8,10 +8,7 @@ Lati di un triangolo
#include <cstdlib>
using namespace std;
bool isTriangle(int ab, int bc, int ca) {
if (ab + bc > ca && bc + ca > ab && ca + ab > bc)
return true;
else
return false;
return ab + bc > ca && bc + ca > ab && ca + ab > bc;
}
int main() {
int ab, bc, ca;