2 votes

sides of triangle. returning value

I only see one issue in two places: if (valid_triangle = true) This is an assignment statement, which is always true, because it used the "=" operator. If you want to do a comparison test, it must ...
  • 64.6k
1 vote

Week 2 Lecture - Functions - Valid Triangle

Just like the function printf, the valid_triangle function has to be called from within main in order to execute and produce results.
1 vote

Pset2 Functions video - Valid triangle solution

What I think you are doing wrong is, you are checking if an array is less than or equal to 0. What you should be doing is indexing into the array. Then it would be checking the float values. while (...
1 vote

cs50 mario.c more check errors

Looks like check50 got a different file. Maybe you have forgotten to save, or you are in the wrong directory, one where you stored a solution to mario.less? check50 will always upload mario.c from ...
  • 20.7k

Only top scored, non community-wiki answers of a minimum length are eligible