Ad
  • Default User Avatar

    thanks. this is where i got the error

  • Default User Avatar

    Thanks, that's help me a lot !

  • Default User Avatar

    It is said:

    returns the first n such that ceil(price of System B) < price of System A.

    That doesn't give the loop condition but only what you must have when the loop is ended; it is up to you to write your loop to get that. In your code print what you get for the two systems just before your return to see what happens.