Skip to main content
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 ...
Cliff B's user avatar
  • 69.1k
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.
DinoCoderSaurus's user avatar
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 (...
Kavija Karunarathna's user avatar
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 ...
Blauelf's user avatar
  • 21k

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