Westonci.ca connects you with experts who provide insightful answers to your questions. Join us today and start learning! Get immediate answers to your questions from a wide network of experienced professionals on our Q&A platform. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.

Write a python program to calculate the sum of numbers from 1 to 20 which is divisible by 3.

Sagot :

Answer:

Input : N = 5

Output : 7

sum = 3 + 4

Input : N = 12

Output : 42

sum = 3 + 4 + 6 + 8 + 9 + 12

Answer:Input : n = 2, number = 7

Output : 728

There are nine n digit numbers that

are divisible by 7. Numbers are 14+  

21 + 28 + 35 + 42 + 49 + .... + 97.

Input : n = 3, number = 7

Output : 70336

Input : n = 3, number = 4

Output : 124200

Explanation:

Thanks for using our platform. We aim to provide accurate and up-to-date answers to all your queries. Come back soon. Thank you for choosing our platform. We're dedicated to providing the best answers for all your questions. Visit us again. We're dedicated to helping you find the answers you need at Westonci.ca. Don't hesitate to return for more.