2

I am getting this after I entered the value of 0 or negative:

Expecting a prompt for standard input ...    ... but received an exit code of  0

I don't know what do I do.

3

The Greedy pset says:

Using GetFloat alone will ensure that the user’s input is indeed a floating-point (or integral) value but not that it is non-negative. If the user fails to provide a non-negative value, your program should re-prompt the user for a valid amount again and again until the user complies. [my emphasis]

The check50 error you are receiving:

Expecting a prompt for standard input ... ... but received an exit code of 0

indicates that you aren't re-prompting but are instead ending the program. You need to ask the user for a valid number.

| improve this answer | |
  • Well I totally forgot about it. it works now.. TY – Rajat Jul 19 '14 at 13:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .