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,
5 months ago
Computer Science,
10 months ago
Computer Science,
10 months ago
Biology,
1 year ago
Physics,
1 year ago