generate tabuada java script

Solutions on MaxInterview for generate tabuada java script by the best coders in the world

showing results for - "generate tabuada java script"
Felix
14 Oct 2020
1function tabuada(){
2  var num = parseInt(document.getElementById("num").value);
3  var resposta = document.getElementById('resposta');
4  var tabuada='';
5
6  for(var count=1; count<=10 ; count++)
7   tabuada += num+" x "+count+" = "+
8               num*count+"<br />";
9  
10  resposta.innerHTML = tabuada;
11}
12