if else number is / by 2 and 3

  let a = 156;

  

  if(a%2==0 || a%3==0){

    console.log("number is divisible by 2 and 3")

  }

  

  else{

    console.log("number is not divisible by 2 and 3")

  }

Comments

Popular posts from this blog

practice test of Arithmetic Operations: