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
Math,
4 months ago
Math,
4 months ago
English,
4 months ago
Computer Science,
8 months ago
Computer Science,
8 months ago
Biology,
1 year ago
Physics,
1 year ago