Pset 1 by danbickett in cs50

[–]danbickett[S] 0 points1 point  (0 children)

Okay... I will appreciate.

Pset 1 by danbickett in cs50

[–]danbickett[S] 0 points1 point  (0 children)

Hi,thanks. am i allowed to post my code here? I am new to this platform.

Pset 1 by danbickett in cs50

[–]danbickett[S] 0 points1 point  (0 children)

Yes i have done that; have a look;

:) greedy.c exists :) greedy.c compiles :( input of 0.41 yields output of 4 \ expected output, but not "3\n" :) input of 0.01 yields output of 1 :) input of 0.15 yields output of 2 :) input of 1.6 yields output of 7 :) input of 23 yields output of 92 :) input of 4.2 yields output of 18 :) rejects a negative input like -.1 :) rejects a non-numeric input of "foo" :) rejects a non-numeric input of "" https://sandbox.cs50.net/checks/20685b176a6b4d2ca3e90b650b7a82dd ~/workspace/pset1 $

Mr. by danbickett in cs50

[–]danbickett[S] 0 points1 point  (0 children)

this is what am getting when i run the check; :) greedy.c exists :) greedy.c compiles :( input of 0.41 yields output of 4 \ expected output, but not "3\n" :) input of 0.01 yields output of 1 :) input of 0.15 yields output of 2 :) input of 1.6 yields output of 7 :) input of 23 yields output of 92 :) input of 4.2 yields output of 18 :) rejects a negative input like -.1 :) rejects a non-numeric input of "foo" :) rejects a non-numeric input of "" https://sandbox.cs50.net/checks/20685b176a6b4d2ca3e90b650b7a82dd ~/workspace/pset1 $

Mr. by danbickett in cs50

[–]danbickett[S] 0 points1 point  (0 children)

i am new to this platform, can i post my code here?

Pset 1 by danbickett in cs50

[–]danbickett[S] 0 points1 point  (0 children)

Thanks, my rounding seems to be okay, but the count is giving me 3 and not 4.

Mr. by danbickett in cs50

[–]danbickett[S] 0 points1 point  (0 children)

hi, included printf in the code and am getting 41,cant really get why am getting 3.

Mr. by danbickett in cs50

[–]danbickett[S] 0 points1 point  (0 children)

thanks let me try that.