Explore Westonci.ca, the leading Q&A site where experts provide accurate and helpful answers to all your questions. Explore in-depth answers to your questions from a knowledgeable community of experts across different fields. Join our platform to connect with experts ready to provide precise answers to your questions in different areas.

Given an integer num, return the sum of the multiples of num between 1 and 100. For example, if num is 20, the returned value should be the sum of 20, 40, 60, 80, and 100, which is 300. If num is not positive, return 0.