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