Math, asked by sTaRAbHi85, 2 months ago

write a program to accept any number from the user and check i) the number is divisible by 6 without dividing by 6 and ii) the number is divisible by 5 without dividing by 5​

Answers

Answered by siyamala1305
0

Answer:

Given a number, the task is to check if a number is divisible by 6 or not. The input number may be large and it may not be possible to store even if we use long long int.

Examples:

Input : n = 2112

Output : Yes

Input : n = 1124

Output : No

Input : n = 363588395960667043875487

Output : No

Answered by itzXtylishAbhi
1

Step-by-step explanation:

Divisibility Rules: 2, 3, 4, 5, 6, 9, and 10

A number aa is divisible by the number bb if a \div ba÷b has a remainder of zero (00). For example, 15 divided by 3 is exactly 5 which implies that its remainder is zero. We then say that 15 is divisible by 3.

In our other lesson, we discussed the divisibility rules for 7, 11, and 12. This time, we will cover the divisibility rules or tests for 2, 3, 4, 5, 6, 9, and 10. Believe me, you will be able to learn them very quickly because you may not know that you already have a basic and intuitive understanding of it. For instance, it is obvious that all even numbers are divisible by 2. That is pretty much the divisibility rule for 2. The goal of this divisibility rules lesson is to formalize what you already know.

Similar questions