Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript check if number is multiple of 3

var num 

num = prompt('Enter the number')


if (num % 3 == 0)
	document.write('Multiple of 3')
else 
  document.write('Not a multiple of 3')



 
PREVIOUS NEXT
Tagged: #javascript #check #number #multiple
ADD COMMENT
Topic
Name
2+2 =