Computer Science, asked by prayertime41, 1 month ago

Write a python program to enter a value and print if it is divisible by 17 with appropriate messages.

Answers

Answered by achu3484
0

Answer:

Approach : For example, let’s take N = 20 as a limit, then the program should print all numbers less than 20 which are divisible by both 3 and 5. For this divide each number from 0 to N by both 3 and 5 and check their remainder. If remainder is 0 in both cases then simply print that number.

Below is the implementation :

Similar questions