Answers for "generate tabuada java script"

0

generate tabuada java script

function tabuada(){
  var num = parseInt(document.getElementById("num").value);
  var resposta = document.getElementById('resposta');
  var tabuada='';

  for(var count=1; count<=10 ; count++)
   tabuada += num+" x "+count+" = "+
               num*count+"<br />";
  
  resposta.innerHTML = tabuada;
}
Posted by: Guest on October-13-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language