You're close. The missing piece is adding 1 to the number of kegs if the number of people isn't divisible by 20. You can use the modulus operator (%) to determine that.
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: GCDEF Search: Search took 0.40 seconds.
Results 1 to 3 of 3
|
Click Here to Expand Forum to Full Width |