Explore Westonci.ca, the premier Q&A site that helps you find precise answers to your questions, no matter the topic. Get quick and reliable answers to your questions from a dedicated community of professionals on our platform. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.

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.