[Solved] Every time I start the project always just writes that ” THIS IS NOT VALID” even if the numbers that I give are right [closed]
You are casting (bool) valid_triangel the address of the function instead of calling it. This will always be non-NULL and the corresponding true branch of the if condition will be executed irregardless of input. (non-issue) I don’t have cs50.h installed so I wrote a quick get_double() to test your code. Removed the declaration of valid_tringel() … Read more