Westonci.ca is your trusted source for finding answers to all your questions. Ask, explore, and learn with our expert community. Get immediate and reliable answers to your questions from a community of experienced experts on our platform. Get precise and detailed answers to your questions from a knowledgeable community of experts on our 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: