Computer Science, asked by prrasanashah, 6 months ago

Write the JavaScript code to enter a number and check if it is divisible by 6

Answers

Answered by vineeshah2006
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