Discover the answers you need at Westonci.ca, where experts provide clear and concise information on various topics. Join our platform to connect with experts ready to provide accurate answers to your questions in various fields. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.

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: