Write the JavaScript code to enter a number and check if it is divisible by 6
Answers
Answered by
0
A number is divisible by 6 it's divisible by 2 and 3.
a) A number is divisible by 2 if its last digit is divisible by 2.
b) A number is divisible by 3 if sum of digits is divisible by 3.
Similar questions
Chemistry,
3 months ago
Math,
3 months ago
Math,
3 months ago
Computer Science,
6 months ago
Computer Science,
6 months ago
Biology,
10 months ago
Physics,
10 months ago