At the moment i am tackling the cs50x projects and i need a little bit of help with problem set 1, the 'greedy algorithm'. I am unsure why my program doesn't work. Can you please help me troubleshoot? My program is attached: The answer to the attached terminal pic is supposed to be 4.

At the moment i am tackling the cs50x projects and i need a little bit of help with problem set 1 the greedy algorithm I am unsure why my program doesnt work Ca class=
At the moment i am tackling the cs50x projects and i need a little bit of help with problem set 1 the greedy algorithm I am unsure why my program doesnt work Ca class=

Respuesta :

that you have to multiply first and then divide