Ad
  • Default User Avatar

    This is awefully written.

    If there is nobody to do homework there are no pages required. Trying to make negatives of a real world problem is going to cause a more 'real world software problem'. You can't have negative sheets, nor can you have negative classmates.

    You should error trap that into your code. if(classmates < 0 || pages < 0) { no pages are required }.....