JSFiddle - React, Tailwind, and code Playground

by shahrukh007

HTML

<html>
<head>
<body>
Enter No of Cols:<input type="number" id="col"><br>
Enter No of Rows<input type="number" id="row"><br>
<button type="button" onclick="myFunction();">
click me
</button>
<script>
function myFunction(){
var p;
 var x = document.getElementById('col').value;
 var y = document.getElementById('row').value;
   for(i=1;i<=x.length;i++)
    {
      for(j=1;j<=y.length;i++)
       {
        console.log('i*j');
       }
       console.log('\n');
     }
     }
</script>
</body>
</head>
</html>