IDNLearn.com connects you with a community of experts ready to answer your questions. Join our knowledgeable community and access a wealth of reliable answers to your most pressing questions.

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.

Sagot :

Your engagement is important to us. Keep sharing your knowledge and experiences. Let's create a learning environment that is both enjoyable and beneficial. Thank you for visiting IDNLearn.com. We’re here to provide clear and concise answers, so visit us again soon.