1
I get this mistake
lvalue required as left operand of assignment
in the code
if (a*a = b*b + c*c) {
printf ("TRIANGULO RETANGULO\n");}
1
I get this mistake
lvalue required as left operand of assignment
in the code
if (a*a = b*b + c*c) {
printf ("TRIANGULO RETANGULO\n");}
1
You want to make a comparison, right? Then use the correct operator for comparisons and don’t use the assignment operator:
if (a * a == b * b + c * c) printf("TRIANGULO RETANGULO\n");
Browser other questions tagged c operators
You are not signed in. Login or sign up in order to post.
Thank you very much!
– Sushi