Search:

Type: Posts; User: GregBrannon

Search: Search took 0.10 seconds.

  1. [SOLVED] Re: help with profitMargin (If/else structuring)

    Please post the updated code.

    To get to the print statement you've indicated (thanks for finally being specific), the first if() condition must be FALSE ( >= 4 ) and the corresponding else/if()...
  2. [SOLVED] Re: help with profitMargin (If/else structuring)

    As I said, comments would help you to keep the logic straight AND to let someone else reading your code know what it is supposed to be doing. For example:
    // for less than a full year of sales...
  3. [SOLVED] Re: help with profitMargin (If/else structuring)

    Welcome to the forum! Thanks for taking the time to learn how to post code correctly. If you haven't already, please read this topic to learn other useful info for new members.

    Where in the code...
Results 1 to 3 of 3