Hello, I am looking for some help with this issue I am having, I think its something to do with my variables but I am not sure. The goal is to make a program that figures out how many cents I have based on how many quarters, nickels, and dimes I have. It performs fine when I use positive values such as 1 quarter, 2 dimes, 4 nickels. The issue I am having is when I place a negative value in for quarters it wont ask me for dimes but it will ask me for nickels. I want the final product to read like:
|
|
The issue I am having is when I place a negative value in for quarters it wont ask me for dimes |
quarters
is non-negative:
|
|
PLEASE ALWAYS USE CODE TAGS (the <> formatting button), to the right of this box, when posting code. Along with the proper indenting it makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/ http://www.cplusplus.com/articles/z13hAqkS/ Hint: You can edit your post, highlight your code and press the <> formatting button. This will not automatically indent your code. That part is up to you. You can use the preview button at the bottom to see how it looks. I found the second link to be the most help. |
|
|
|
|